diff options
author | Kartik Mohta <kartikmohta@gmail.com> | 2011-04-08 01:12:37 +0000 |
---|---|---|
committer | Kartik Mohta <kartikmohta@gmail.com> | 2011-04-08 01:12:37 +0000 |
commit | cb2e143a5352a5cc3c83f5af6a58b176d1701a36 (patch) | |
tree | ad82bf18a364b40ff60a9ae30d287a1b65283204 /libpurple/blist.c | |
parent | a01c539eac58d18818b9664f23d232543d07d1f1 (diff) | |
download | pidgin-cb2e143a5352a5cc3c83f5af6a58b176d1701a36.tar.gz |
Delete buddy pounces when removing a buddy. Fixes #1131.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
Diffstat (limited to 'libpurple/blist.c')
-rw-r--r-- | libpurple/blist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpurple/blist.c b/libpurple/blist.c index bc949031b8..bd09c6373a 100644 --- a/libpurple/blist.c +++ b/libpurple/blist.c @@ -28,6 +28,7 @@ #include "dbus-maybe.h" #include "debug.h" #include "notify.h" +#include "pounce.h" #include "prefs.h" #include "privacy.h" #include "prpl.h" @@ -2184,6 +2185,9 @@ void purple_blist_remove_buddy(PurpleBuddy *buddy) if (ops && ops->remove_node) ops->remove_node(node); + /* Remove this buddy's pounces */ + purple_pounce_destroy_all_by_buddy(buddy); + /* Signal that the buddy has been removed before freeing the memory for it */ purple_signal_emit(purple_blist_get_handle(), "buddy-removed", buddy); |