Permalink
Browse files

Refs #11 - unlink nodes before freeing.

Conflicts:

	Source/CXMLDocument.m
  • Loading branch information...
1 parent d2d6f21 commit ccc75e0d453226edd9314b1587593c7486e430b1 @schwa schwa committed May 5, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −3 Source/CXMLDocument.m
  2. +1 −0 Source/CXMLNode_PrivateExtensions.m
View
@@ -197,11 +197,10 @@ - (void)dealloc
[thePool release];
//
+ xmlUnlinkNode(_node);
xmlFreeDoc((xmlDocPtr)_node);
_node = NULL;
- //
- [super dealloc];
- }
+}
//- (NSString *)characterEncoding;
//- (NSString *)version;
@@ -109,6 +109,7 @@ - (void)invalidate;
if (_freeNodeOnRelease)
{
+ xmlUnlinkNode(_node);
xmlFreeNode(_node);
}

0 comments on commit ccc75e0

Please sign in to comment.