im.pidgin.pidgin: 394a96091e6eace0c8f3a50b977554efc9697a56
sadrul at pidgin.im
sadrul at pidgin.im
Sat Jan 12 09:45:43 EST 2008
-----------------------------------------------------------------
Revision: 394a96091e6eace0c8f3a50b977554efc9697a56
Ancestor: 2c46d2ca79e9a3064411432447e30fed9516542b
Author: sadrul at pidgin.im
Date: 2008-01-12T14:44:12
Branch: im.pidgin.pidgin
Modified files:
pidgin/gtkaccount.c pidgin/gtkblist.c pidgin/gtkcertmgr.c
pidgin/gtklog.c pidgin/gtknotify.c pidgin/gtkpounce.c
pidgin/gtkprivacy.c pidgin/gtkrequest.c
pidgin/gtksavedstatuses.c pidgin/gtkstatusbox.c
ChangeLog:
It turns out the tree-models need to be unref'ed.
-------------- next part --------------
============================================================
--- pidgin/gtkaccount.c db9cd72693c548f79a3c17bf1fa5f8a3a49a8ed9
+++ pidgin/gtkaccount.c 5fab8a6c2d073295e6a065d565fbf96c581631d7
@@ -2177,6 +2177,7 @@ create_accounts_list(AccountsWindow *dia
treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model));
dialog->treeview = treeview;
gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);
+ g_object_unref(G_OBJECT(dialog->model));
sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview));
gtk_tree_selection_set_mode(sel, GTK_SELECTION_MULTIPLE);
============================================================
--- pidgin/gtkblist.c 670c2b74b5ddb4ddacbccaf0110786a08b0625be
+++ pidgin/gtkblist.c 799b363d2e604eb3211266efd0c8e06c046bee98
@@ -6069,6 +6069,7 @@ static void pidgin_blist_destroy(PurpleB
gtkblist->timeout = 0;
gtkblist->drag_timeout = 0;
gtkblist->window = gtkblist->vbox = gtkblist->treeview = NULL;
+ g_object_unref(G_OBJECT(gtkblist->treemodel));
gtkblist->treemodel = NULL;
g_object_unref(G_OBJECT(gtkblist->ift));
g_object_unref(G_OBJECT(gtkblist->empty_avatar));
============================================================
--- pidgin/gtkcertmgr.c d04a93aae41cad61ec018f745a495a465c396e6a
+++ pidgin/gtkcertmgr.c d91c6067dd08b48bf45503f1afc91874d5a9ea9b
@@ -422,6 +422,7 @@ tls_peers_mgmt_build(void)
tpm_dat->listview = listview =
GTK_TREE_VIEW(gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)));
+ g_object_unref(G_OBJECT(store));
{
GtkCellRenderer *renderer;
============================================================
--- pidgin/gtklog.c 84af7ea27729df07b80269725e050b79af2559fa
+++ pidgin/gtklog.c 51befd7620d86f700cc95e4281553830c948e1b3
@@ -614,6 +614,7 @@ static PidginLogViewer *display_log_view
gtk_paned_add1(GTK_PANED(pane), sw);
lv->treestore = gtk_tree_store_new (2, G_TYPE_STRING, G_TYPE_POINTER);
lv->treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (lv->treestore));
+ g_object_unref(G_OBJECT(lv->treestore));
rend = gtk_cell_renderer_text_new();
col = gtk_tree_view_column_new_with_attributes ("time", rend, "markup", 0, NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW(lv->treeview), col);
============================================================
--- pidgin/gtknotify.c e63cacd8e7e7eb881bab9e964704eaa100d67233
+++ pidgin/gtknotify.c 0664850e570c67c2d2e7818b91f6cfdab24c89d6
@@ -379,6 +379,7 @@ pidgin_get_mail_dialog(void)
mail_dialog->treemodel = gtk_tree_store_new(COLUMNS_PIDGIN_MAIL,
GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_POINTER);
mail_dialog->treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(mail_dialog->treemodel));
+ g_object_unref(G_OBJECT(mail_dialog->treemodel));
gtk_tree_view_set_search_column(GTK_TREE_VIEW(mail_dialog->treeview), PIDGIN_MAIL_TEXT);
gtk_tree_view_set_search_equal_func(GTK_TREE_VIEW(mail_dialog->treeview),
pidgin_tree_view_search_equal_func, NULL, NULL);
@@ -818,6 +819,7 @@ pidgin_notify_searchresults(PurpleConnec
/* Setup the treeview */
treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(model));
+ g_object_unref(G_OBJECT(model));
gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);
gtk_widget_set_size_request(treeview, 500, 400);
gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)),
============================================================
--- pidgin/gtkpounce.c 31c2ff93021037416850247ff685f8fd368d3799
+++ pidgin/gtkpounce.c ff2f34b63f822c3e191e457237abd474891aa099
@@ -1237,6 +1237,7 @@ create_pounces_list(PouncesManager *dial
/* Create the treeview */
treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model));
+ g_object_unref(G_OBJECT(dialog->model));
dialog->treeview = treeview;
gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);
============================================================
--- pidgin/gtkprivacy.c e7c626fec78d74b44c1f7026aac7e311b3bb870c
+++ pidgin/gtkprivacy.c 9bf0dae88ce8b88b4b8d828bccc994fd5d7a1470
@@ -474,6 +474,8 @@ pidgin_privacy_dialog_hide(void)
if (privacy_dialog == NULL)
return;
+ g_object_unref(G_OBJECT(privacy_dialog->allow_store));
+ g_object_unref(G_OBJECT(privacy_dialog->block_store));
g_free(privacy_dialog);
privacy_dialog = NULL;
}
============================================================
--- pidgin/gtkrequest.c 17234be0980aec6821f93c34bf87cd3e70ba9f0e
+++ pidgin/gtkrequest.c ebcb63de3e8001376ad6dccfea219ad78269319f
@@ -1007,6 +1007,7 @@ create_list_field(PurpleRequestField *fi
/* Create the tree view */
treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
+ g_object_unref(G_OBJECT(store));
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), FALSE);
sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview));
============================================================
--- pidgin/gtksavedstatuses.c 4081f3255992f936c81b5d222712518b92ce8d2e
+++ pidgin/gtksavedstatuses.c 479f7d00757a8fdc6119dadd184fbf8accdd6332
@@ -669,6 +669,7 @@ pidgin_status_window_hide(void)
purple_request_close_with_handle(status_window);
purple_notify_close_with_handle(status_window);
purple_signals_disconnect_by_handle(status_window);
+ g_object_unref(G_OBJECT(status_window->model));
g_free(status_window);
status_window = NULL;
}
@@ -723,6 +724,7 @@ status_editor_destroy_cb(GtkWidget *widg
status_editor_remove_dialog(dialog);
g_free(dialog->original_title);
+ g_object_unref(G_OBJECT(dialog->model));
g_free(dialog);
return FALSE;
============================================================
--- pidgin/gtkstatusbox.c d7e0ab285aa24153769221f863fb04d5553f4bd2
+++ pidgin/gtkstatusbox.c 75beae3ab41ad8caafaaed2879862cc9d0d59104
@@ -513,6 +513,8 @@ pidgin_status_box_finalize(GObject *obj)
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);
More information about the Commits
mailing list