pidgin/gtkstatusbox.c

changeset 22216
c4b8738c471c
parent 22214
e8a9916cb99e
child 22229
8560c89895a9
equal deleted inserted replaced
22214:e8a9916cb99e 22216:c4b8738c471c
505 PidginStatusBox *statusbox = PIDGIN_STATUS_BOX(obj); 505 PidginStatusBox *statusbox = PIDGIN_STATUS_BOX(obj);
506 506
507 purple_signals_disconnect_by_handle(statusbox); 507 purple_signals_disconnect_by_handle(statusbox);
508 purple_prefs_disconnect_by_handle(statusbox); 508 purple_prefs_disconnect_by_handle(statusbox);
509 509
510 gdk_cursor_unref(statusbox->hand_cursor); 510 destroy_icon_box(statusbox);
511 gdk_cursor_unref(statusbox->arrow_cursor); 511
512
513 purple_imgstore_unref(statusbox->buddy_icon_img);
514 g_object_unref(G_OBJECT(statusbox->buddy_icon));
515 g_object_unref(G_OBJECT(statusbox->buddy_icon_hover));
516 g_object_unref(G_OBJECT(statusbox->store)); 512 g_object_unref(G_OBJECT(statusbox->store));
517 g_object_unref(G_OBJECT(statusbox->dropdown_store)); 513 g_object_unref(G_OBJECT(statusbox->dropdown_store));
518
519 if (statusbox->buddy_icon_sel)
520 gtk_widget_destroy(statusbox->buddy_icon_sel);
521
522 G_OBJECT_CLASS(parent_class)->finalize(obj); 514 G_OBJECT_CLASS(parent_class)->finalize(obj);
523 } 515 }
524 516
525 static GType 517 static GType
526 pidgin_status_box_child_type (GtkContainer *container) 518 pidgin_status_box_child_type (GtkContainer *container)

mercurial