Fixed memory leak in new parser abstraction.

This commit is contained in:
Jack Moffitt
2009-04-14 15:36:03 -06:00
parent b522704567
commit 398d774c59
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ static void _end_element(void *userdata, const XML_Char *name)
parser->stanza = parser->stanza->parent;
} else {
if (parser->stanzacb)
parser->stanzacb(xmpp_stanza_clone(parser->stanza),
parser->stanzacb(parser->stanza,
parser->userdata);
xmpp_stanza_release(parser->stanza);
parser->stanza = NULL;

View File

@@ -114,7 +114,7 @@ static void _end_element(void *userdata, const xmlChar *name)
parser->stanza = parser->stanza->parent;
} else {
if (parser->stanzacb)
parser->stanzacb(xmpp_stanza_clone(parser->stanza),
parser->stanzacb(parser->stanza,
parser->userdata);
xmpp_stanza_release(parser->stanza);
parser->stanza = NULL;