]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xml/xml.cpp
missing commit
[wxWidgets.git] / src / xml / xml.cpp
index 6e2dbf6c96d0cc0aa59cbcb60be547c64ceb59dd..0fc27c246b23f0ff25c50347fd33ea828fc46bf7 100644 (file)
@@ -97,8 +97,12 @@ wxXmlNode::~wxXmlNode()
 
 wxXmlNode& wxXmlNode::operator=(const wxXmlNode& node)
 {
-    DoFree();
-    DoCopy(node);
+    if ( &node != this )
+    {
+        DoFree();
+        DoCopy(node);
+    }
+
     return *this;
 }