aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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 /mail
parent79e662f99e144d6ad8d14d720315f131325ee2ae (diff)
downloadgsoc2013-evolution-b551414de076b32b638742aa26c0aa175f0e3e7a.tar.gz
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
Diffstat (limited to 'mail')
-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
4 files changed, 5 insertions, 0 deletions
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;
}