Skip to content

Commit

Permalink
Refs #11 - unlink nodes before freeing.
Browse files Browse the repository at this point in the history
Conflicts:

	Source/CXMLDocument.m
  • Loading branch information
schwa committed May 5, 2012
1 parent d2d6f21 commit ccc75e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/CXMLDocument.m
Expand Up @@ -197,11 +197,10 @@ - (void)dealloc

[thePool release];
//
xmlUnlinkNode(_node);
xmlFreeDoc((xmlDocPtr)_node);
_node = NULL;
//
[super dealloc];
}
}

//- (NSString *)characterEncoding;
//- (NSString *)version;
Expand Down
1 change: 1 addition & 0 deletions Source/CXMLNode_PrivateExtensions.m
Expand Up @@ -109,6 +109,7 @@ - (void)invalidate;

if (_freeNodeOnRelease)
{
xmlUnlinkNode(_node);
xmlFreeNode(_node);
}

Expand Down

0 comments on commit ccc75e0

Please sign in to comment.