comparison pidgin/gtksavedstatuses.c @ 22087:d943df776c09

It turns out the tree-models need to be unref'ed.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 12 Jan 2008 14:44:12 +0000
parents 1690d040addd
children cc8903c59d6b
comparison
equal deleted inserted replaced
22086:1d02fa7737eb 22087:d943df776c09
667 gtk_widget_destroy(status_window->window); 667 gtk_widget_destroy(status_window->window);
668 668
669 purple_request_close_with_handle(status_window); 669 purple_request_close_with_handle(status_window);
670 purple_notify_close_with_handle(status_window); 670 purple_notify_close_with_handle(status_window);
671 purple_signals_disconnect_by_handle(status_window); 671 purple_signals_disconnect_by_handle(status_window);
672 g_object_unref(G_OBJECT(status_window->model));
672 g_free(status_window); 673 g_free(status_window);
673 status_window = NULL; 674 status_window = NULL;
674 } 675 }
675 676
676 677
721 { 722 {
722 StatusEditor *dialog = user_data; 723 StatusEditor *dialog = user_data;
723 724
724 status_editor_remove_dialog(dialog); 725 status_editor_remove_dialog(dialog);
725 g_free(dialog->original_title); 726 g_free(dialog->original_title);
727 g_object_unref(G_OBJECT(dialog->model));
726 g_free(dialog); 728 g_free(dialog);
727 729
728 return FALSE; 730 return FALSE;
729 } 731 }
730 732