comparison src/protocols/jabber/xmlnode.c @ 7130:ec7c5aead3d7

[gaim-migrate @ 7697] fix a warning committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 03 Oct 2003 15:23:01 +0000
parents 4e5654931401
children
comparison
equal deleted inserted replaced
7129:8246bd3141ae 7130:ec7c5aead3d7
363 context = g_markup_parse_context_new(&xmlnode_parser, 0, xpd, NULL); 363 context = g_markup_parse_context_new(&xmlnode_parser, 0, xpd, NULL);
364 364
365 if(!g_markup_parse_context_parse(context, str, real_size, NULL)) { 365 if(!g_markup_parse_context_parse(context, str, real_size, NULL)) {
366 while(xpd->current && xpd->current->parent) 366 while(xpd->current && xpd->current->parent)
367 xpd->current = xpd->current->parent; 367 xpd->current = xpd->current->parent;
368 xmlnode_free(xpd->current); 368 if(xpd->current)
369 xmlnode_free(xpd->current);
369 xpd->current = NULL; 370 xpd->current = NULL;
370 } 371 }
371 g_markup_parse_context_free(context); 372 g_markup_parse_context_free(context);
372 373
373 ret = xpd->current; 374 ret = xpd->current;