pidgin: 20e4d365: Fix purple_buddy_destroy crash on exit.
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Thu Apr 9 21:35:35 EDT 2009
-----------------------------------------------------------------
Revision: 20e4d365377af2c56b6b2f2e48b8034d55ee684a
Ancestor: 0281a890abcc437733d01becc849724782281ef4
Author: maiku at soc.pidgin.im
Date: 2009-04-10T01:18:15
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/20e4d365377af2c56b6b2f2e48b8034d55ee684a
Modified files:
libpurple/blist.c
ChangeLog:
Fix purple_buddy_destroy crash on exit.
-------------- next part --------------
============================================================
--- libpurple/blist.c 11e434ee9e713dc54b4f5affb7e5e6d1e03a8750
+++ libpurple/blist.c 13be96798de3c2e52b38a9e6381974820b90ffd2
@@ -1249,9 +1249,11 @@ purple_buddy_destroy(PurpleBuddy *buddy)
* can free proto_data
*/
prpl = purple_find_prpl(purple_account_get_protocol_id(buddy->account));
- prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl);
- if (prpl_info && prpl_info->buddy_free)
- prpl_info->buddy_free(buddy);
+ if (prpl) {
+ prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl);
+ if (prpl_info && prpl_info->buddy_free)
+ prpl_info->buddy_free(buddy);
+ }
/* Delete the node */
purple_buddy_icon_unref(buddy->icon);
More information about the Commits
mailing list