aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <poincare@ikezoe.net>2006-07-10 18:56:07 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2006-07-10 18:56:07 +0800
commitb551414de076b32b638742aa26c0aa175f0e3e7a (patch)
treeaa07e3cffa1a8a3fa72417df4b4412091e85f991
parent79e662f99e144d6ad8d14d720315f131325ee2ae (diff)
downloadgsoc2013-evolution-b551414de076b32b638742aa26c0aa175f0e3e7a.tar
gsoc2013-evolution-b551414de076b32b638742aa26c0aa175f0e3e7a.tar.gz
gsoc2013-evolution-b551414de076b32b638742aa26c0aa175f0e3e7a.tar.bz2
gsoc2013-evolution-b551414de076b32b638742aa26c0aa175f0e3e7a.tar.lz
gsoc2013-evolution-b551414de076b32b638742aa26c0aa175f0e3e7a.tar.xz
gsoc2013-evolution-b551414de076b32b638742aa26c0aa175f0e3e7a.tar.zst
gsoc2013-evolution-b551414de076b32b638742aa26c0aa175f0e3e7a.zip
Fixing memory leaks.
2006-07-07 Hiroyuki Ikezoe <poincare@ikezoe.net> Fixing memory leaks. svn path=/trunk/; revision=32269
-rw-r--r--addressbook/gui/component/addressbook-config.c1
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c1
-rw-r--r--mail/em-account-prefs.c1
-rw-r--r--mail/em-folder-selection-button.c1
-rw-r--r--mail/em-subscribe-editor.c1
-rw-r--r--mail/em-vfolder-rule.c2
6 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index 654b66c6c7..6d5d472b2d 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -327,6 +327,7 @@ supported_bases_create_table (char *name, char *string1, char *string2, int num1
model = gtk_list_store_new (1, G_TYPE_STRING);
table = gtk_tree_view_new_with_model ((GtkTreeModel *) model);
+ g_object_unref (model);
renderer = gtk_cell_renderer_text_new ();
gtk_tree_view_insert_column_with_attributes ((GtkTreeView *) table, -1, _("Base"), renderer, "text", 0, NULL);
gtk_tree_view_set_headers_visible ((GtkTreeView *) table, FALSE);
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 6cfc0913d6..e4aff7983a 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -1389,6 +1389,7 @@ create_treeview_view (EABView *view)
scrolled = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow (GTK_SCROLLED_WINDOW (scrolled), GTK_SHADOW_IN);
treeview = gtk_tree_view_new_with_model (adapter);
+ g_object_unref (adapter);
gtk_widget_show (treeview);
diff --git a/mail/em-account-prefs.c b/mail/em-account-prefs.c
index ec0a232e88..f49ff4009a 100644
--- a/mail/em-account-prefs.c
+++ b/mail/em-account-prefs.c
@@ -515,6 +515,7 @@ em_account_prefs_treeview_new (char *widget_name, char *string1, char *string2,
model = gtk_list_store_new (4, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER);
table = gtk_tree_view_new_with_model ((GtkTreeModel *) model);
+ g_object_unref (model);
gtk_tree_view_insert_column_with_attributes ((GtkTreeView *) table, -1, _("Enabled"),
renderer, "active", 0, NULL);
diff --git a/mail/em-folder-selection-button.c b/mail/em-folder-selection-button.c
index 97f165e1b4..4b08ee6601 100644
--- a/mail/em-folder-selection-button.c
+++ b/mail/em-folder-selection-button.c
@@ -234,6 +234,7 @@ em_folder_selection_button_clicked (GtkButton *button)
model = mail_component_peek_tree_model (mail_component_peek ());
emft = (EMFolderTree *) em_folder_tree_new_with_model (model);
+ g_object_unref (model);
em_folder_tree_set_multiselect (emft, priv->multiple_select);
em_folder_tree_set_excluded(emft, EMFT_EXCLUDE_NOSELECT|EMFT_EXCLUDE_VIRTUAL|EMFT_EXCLUDE_VTRASH);
dialog = em_folder_selector_new (emft, EM_FOLDER_SELECTOR_CAN_CREATE, priv->title, priv->caption, NULL);
diff --git a/mail/em-subscribe-editor.c b/mail/em-subscribe-editor.c
index 25227e4c83..dda439d358 100644
--- a/mail/em-subscribe-editor.c
+++ b/mail/em-subscribe-editor.c
@@ -631,6 +631,7 @@ subscribe_set_store(EMSubscribe *sub, CamelStore *store)
model = gtk_tree_store_new (3, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_POINTER);
sub->tree = (GtkTreeView *) gtk_tree_view_new_with_model ((GtkTreeModel *) model);
+ g_object_unref (model);
gtk_widget_show ((GtkWidget *)sub->tree);
sub->widget = gtk_scrolled_window_new (NULL, NULL);
diff --git a/mail/em-vfolder-rule.c b/mail/em-vfolder-rule.c
index 4452ca5c72..467392c685 100644
--- a/mail/em-vfolder-rule.c
+++ b/mail/em-vfolder-rule.c
@@ -587,6 +587,8 @@ em_vfolder_editor_sourcelist_new(char *widget_name, char *string1, char *string2
gtk_widget_show(scrolled);
gtk_widget_show(table);
+ g_object_unref (model);
+
return scrolled;
}