# HG changeset patch # User Sadrul Habib Chowdhury # Date 1200166922 0 # Node ID 51d6ae3999195bf91cb51838dce5703597b90a9a # Parent d943df776c09cd62ebade747bdb780f1d1615d0f 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). diff -r d943df776c09 -r 51d6ae399919 pidgin/gtkstatusbox.c --- 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); }