mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
cleaned up some more things
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34509 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e9907e6d40
commit
5667bb4af7
2 changed files with 6 additions and 1 deletions
|
@ -613,7 +613,7 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
|
|||
xmlNodePtr node = (xmlNodePtr)[self _node];
|
||||
xmlChar *buf = NULL;
|
||||
xmlDocPtr doc = node->doc;
|
||||
xmlBufferPtr buffer = NULL;
|
||||
xmlBufferPtr buffer = xmlBufferCreate(); //NULL;
|
||||
int error = 0;
|
||||
int len = 0;
|
||||
|
||||
|
@ -621,6 +621,7 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
|
|||
buf = buffer->content;
|
||||
len = buffer->size;
|
||||
string = StringFromXMLString(buf,len);
|
||||
xmlBufferFree(buffer);
|
||||
AUTORELEASE(string);
|
||||
|
||||
return string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue