diff libpurple/blist.c @ 31456:4076f53cdd84

Delete buddy pounces when removing a buddy. Fixes #1131. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author kartikmohta@gmail.com
date Fri, 08 Apr 2011 01:12:37 +0000
parents e26af064fe8c
children 609e3855f36d
line wrap: on
line diff
--- a/libpurple/blist.c	Fri Apr 08 00:53:11 2011 +0000
+++ b/libpurple/blist.c	Fri Apr 08 01:12:37 2011 +0000
@@ -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 @@
 	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);