Mercurial > pidgin.yaz
comparison src/protocols/jabber/iq.c @ 7435:be5a715b71c8
[gaim-migrate @ 8040]
fix segfault
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 05 Nov 2003 18:54:36 +0000 |
parents | 85cd2e71bff7 |
children | 6ea4a49b4b51 |
comparison
equal
deleted
inserted
replaced
7434:f05d735c2eac | 7435:be5a715b71c8 |
---|---|
375 id = xmlnode_get_attrib(packet, "id"); | 375 id = xmlnode_get_attrib(packet, "id"); |
376 | 376 |
377 if(type && (!strcmp(type, "result") || !strcmp(type, "error")) && id | 377 if(type && (!strcmp(type, "result") || !strcmp(type, "error")) && id |
378 && *id && (jcd = g_hash_table_lookup(js->callbacks, id))) { | 378 && *id && (jcd = g_hash_table_lookup(js->callbacks, id))) { |
379 jcd->callback(js, packet, jcd->data); | 379 jcd->callback(js, packet, jcd->data); |
380 g_free(jcd); | 380 g_hash_table_remove(js->callbacks, id); |
381 } | 381 } |
382 } | 382 } |
383 | 383 |