comparison libpurple/protocols/jabber/si.c @ 28138:deecc1d663c4

Don't use pointers (even opaquely) once they're freed. Closes #9822.
author Paul Aurich <paul@darkrain42.org>
date Sun, 02 Aug 2009 05:34:11 +0000
parents 97eb110550ad
children 5ac0a83f0b21 6adbdd4b2963
comparison
equal deleted inserted replaced
28137:da33da2e1a1e 28138:deecc1d663c4
1346 purple_debug_info("jabber", 1346 purple_debug_info("jabber",
1347 "jabber_si_xfer_free: closing file for IBB transfer\n"); 1347 "jabber_si_xfer_free: closing file for IBB transfer\n");
1348 fclose(jsx->fp); 1348 fclose(jsx->fp);
1349 } 1349 }
1350 1350
1351 purple_debug_info("jabber", "jabber_si_xfer_free(): freeing jsx %p\n", jsx);
1352
1351 g_free(jsx->stream_id); 1353 g_free(jsx->stream_id);
1352 g_free(jsx->iq_id); 1354 g_free(jsx->iq_id);
1353 /* XXX: free other stuff */ 1355 /* XXX: free other stuff */
1354 g_free(jsx->rxqueue); 1356 g_free(jsx->rxqueue);
1355 g_free(jsx); 1357 g_free(jsx);
1356 xfer->data = NULL; 1358 xfer->data = NULL;
1357 1359
1358 purple_debug_info("jabber", "jabber_si_xfer_free(): freeing jsx %p\n", jsx);
1359 } 1360 }
1360 } 1361 }
1361 1362
1362 /* 1363 /*
1363 * These four functions should only be called from the PurpleXfer functions 1364 * These four functions should only be called from the PurpleXfer functions