Permalink
Browse files

Refs #11 - unlink nodes before freeing.

  • Loading branch information...
schwa committed May 5, 2012
1 parent cca3dd1 commit 1f3381b404903a4609557dc995c0cedcb71eaf5e
Showing with 2 additions and 1 deletion.
  1. +1 −1 Source/CXMLDocument.m
  2. +1 −0 Source/CXMLNode_PrivateExtensions.m
View
@@ -192,9 +192,9 @@ - (void)dealloc
}
//
+ xmlUnlinkNode(_node);
xmlFreeDoc((xmlDocPtr)_node);
_node = NULL;
- //
}
//- (NSString *)characterEncoding;
@@ -109,6 +109,7 @@ - (void)invalidate;
if (_freeNodeOnRelease)
{
+ xmlUnlinkNode(_node);
xmlFreeNode(_node);
}

0 comments on commit 1f3381b

Please sign in to comment.