Fix memory leak.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20126 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2004-09-24 19:14:26 +00:00
parent d59b661481
commit cfe2887dfc
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
2004-09-24 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSArray.m: Make perform methods enumerate forwards.
* Source/Additions/GSXML.m: ([nodeAtIndex:]) fix memory leak.
2004-09-22 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -3698,8 +3698,8 @@ fatalErrorFunction(void *ctx, const unsigned char *msg, ...)
node = xmlXPathNodeSetItem (((xmlXPathObject*)_lib)->nodesetval,
(int)index);
n = [GSXMLNode alloc];
return [n _initFrom: node parent: self];
n = [n _initFrom: node parent: self];
return AUTORELEASE(m);
}
}
- (NSString *) description