Browse files

Fixed a small leak when init-ing from a url fails due to NSData insta…

…nce not being loaded.
  • Loading branch information...
1 parent 669fcbc commit 68873f1737f13d959565c6452d75446b04f894d5 @derrh committed Aug 31, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/CXMLDocument.m
View
1 Source/CXMLDocument.m
@@ -175,6 +175,7 @@ - (id)initWithContentsOfURL:(NSURL *)inURL encoding:(NSStringEncoding)encoding o
}
else
{
+ [self release];
self = NULL;
}

0 comments on commit 68873f1

Please sign in to comment.