Permalink
Browse files

Fix cleanup on XML

  • Loading branch information...
alexp-sssup committed Apr 22, 2011
1 parent 9ef72b3 commit 2401c9f8a59666d71c557a8bfffb2dc74782c126
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripting/flashxml.cpp
View
@@ -37,7 +37,7 @@ XMLNode::XMLNode(XMLDocument* _r, xmlpp::Node* _n):root(_r),node(_n)
XMLNode::~XMLNode()
{
if(root!=this)
if(root!=this && !sys->finalizingDestruction)
root->decRef();
}

0 comments on commit 2401c9f

Please sign in to comment.