[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. 38be50cecc4648289d7a

From: Benjamin Wolsey
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. 38be50cecc4648289d7a4820ad188ee7d2db4ab2
Date: Mon, 27 Sep 2010 08:12:50 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  38be50cecc4648289d7a4820ad188ee7d2db4ab2 (commit)
      from  45dbc9fb24f7ae59eb6d7fd2193d26da1585b223 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 38be50cecc4648289d7a4820ad188ee7d2db4ab2
Author: Benjamin Wolsey <address@hidden>
Date:   Mon Sep 27 10:00:18 2010 +0200

    Mark parent XMLNodes. Fixes bug #31044.

diff --git a/libcore/asobj/XMLNode_as.cpp b/libcore/asobj/XMLNode_as.cpp
index 390e736..9113f60 100644
--- a/libcore/asobj/XMLNode_as.cpp
+++ b/libcore/asobj/XMLNode_as.cpp
@@ -464,6 +464,11 @@ XMLNode_as::stringify(const XMLNode_as& xml, std::ostream& 
xmlout, bool encode)
+    // If there is a parent, make sure its object is reachable. This goes
+    // up towards the root node of tree without marking the XMLNode
+    // resources (which would cause infinite recursion).
+    if (_parent && _parent->_object) _parent->_object->setReachable();
        // Mark children
     std::for_each(_children.begin(), _children.end(),


Summary of changes:
 libcore/asobj/XMLNode_as.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]