changeset 22088:51d6ae399919

Destroy the icon box only when there's one. This gets rid of a runtime warning for statusboxes without a buddy-icon selector (e.g., for an IRC account).
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 12 Jan 2008 19:42:02 +0000
parents d943df776c09
children 1e227e2587e6
files pidgin/gtkstatusbox.c
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c	Sat Jan 12 14:44:12 2008 +0000
+++ b/pidgin/gtkstatusbox.c	Sat Jan 12 19:42:02 2008 +0000
@@ -507,18 +507,10 @@
 	purple_signals_disconnect_by_handle(statusbox);
 	purple_prefs_disconnect_by_handle(statusbox);
 
-	gdk_cursor_unref(statusbox->hand_cursor);
-	gdk_cursor_unref(statusbox->arrow_cursor);
+	destroy_icon_box(statusbox);
 
-	purple_imgstore_unref(statusbox->buddy_icon_img);
-	g_object_unref(G_OBJECT(statusbox->buddy_icon));
-	g_object_unref(G_OBJECT(statusbox->buddy_icon_hover));
 	g_object_unref(G_OBJECT(statusbox->store));
 	g_object_unref(G_OBJECT(statusbox->dropdown_store));
-
-	if (statusbox->buddy_icon_sel)
-		gtk_widget_destroy(statusbox->buddy_icon_sel);
-
 	G_OBJECT_CLASS(parent_class)->finalize(obj);
 }