changeset 13171:18d320fdf28c

[gaim-migrate @ 15534] SF Patch #1426979 from Sadrul Fixes SF Bug #1425702 Buddy Pounce Manager Crashes committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 08 Feb 2006 04:10:14 +0000
parents 5d5e9c65fa42
children 12d960995cdc
files src/gtkpounce.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkpounce.c	Wed Feb 08 03:02:50 2006 +0000
+++ b/src/gtkpounce.c	Wed Feb 08 04:10:14 2006 +0000
@@ -1066,9 +1066,10 @@
 {
 	GtkTreeIter iter;
 
-	if (pounces_manager_find_pounce(&iter, pounce))
+	if (pounces_manager && pounces_manager_find_pounce(&iter, pounce))
 		gtk_list_store_remove(pounces_manager->model, &iter);
 
+	gaim_request_close_with_handle(pounce);
 	gaim_pounce_destroy(pounce);
 }
 
@@ -1087,7 +1088,7 @@
 	pouncee = gaim_pounce_get_pouncee(pounce);
 
 	buf = g_strdup_printf(_("Are you sure you want to delete the pounce on %s for %s?"), pouncee, pouncer);
-	gaim_request_action(NULL, NULL, buf, NULL, 0, pounce, 2,
+	gaim_request_action(pounce, NULL, buf, NULL, 0, pounce, 2,
 						_("Delete"), pounces_manager_delete_confirm_cb,
 						_("Cancel"), g_free);
 	g_free(buf);