[gyrus] Do not leak the builder objects
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gyrus] Do not leak the builder objects
- Date: Tue, 28 Dec 2010 23:57:59 +0000 (UTC)
commit 8b51b35cc2230442fd32d69593ab6667e766a306
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Dec 29 01:40:11 2010 +0200
Do not leak the builder objects
src/gyrus-admin.c | 2 ++
src/gyrus-common.c | 2 ++
src/gyrus-dialog-mailbox-new.c | 2 ++
src/gyrus-report.c | 1 +
src/gyrus-session.c | 2 ++
5 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gyrus-admin.c b/src/gyrus-admin.c
index 96062a3..e606178 100644
--- a/src/gyrus-admin.c
+++ b/src/gyrus-admin.c
@@ -201,6 +201,8 @@ gyrus_admin_init_get_widgets (GyrusAdmin *admin)
table = GTK_WIDGET (gtk_builder_get_object (builder , "table_page"));
gtk_box_pack_start (GTK_BOX (admin), table, TRUE, TRUE, 0);
+ g_object_unref (builder);
+
admin->priv = priv;
}
diff --git a/src/gyrus-common.c b/src/gyrus-common.c
index 505f580..7527752 100644
--- a/src/gyrus-common.c
+++ b/src/gyrus-common.c
@@ -93,6 +93,8 @@ gyrus_dialog_password_new (void)
}
gtk_widget_destroy (dialog);
+ g_object_unref (builder);
+
return password;
}
diff --git a/src/gyrus-dialog-mailbox-new.c b/src/gyrus-dialog-mailbox-new.c
index ed547d6..7abb6ef 100644
--- a/src/gyrus-dialog-mailbox-new.c
+++ b/src/gyrus-dialog-mailbox-new.c
@@ -185,6 +185,8 @@ gyrus_dialog_mailbox_new_init_get_widgets (GyrusDialogMailboxNew *dialog)
dialog->priv->entry_quota = GTK_WIDGET (gtk_builder_get_object (builder, "entry_quota"));
dialog->priv->label_mailbox = GTK_WIDGET (gtk_builder_get_object (builder, "label_mailbox"));
dialog->priv->label_quota = GTK_WIDGET (gtk_builder_get_object (builder, "label_quota"));
+
+ g_object_unref (builder);
}
static void
diff --git a/src/gyrus-report.c b/src/gyrus-report.c
index 7a8cc86..69c4f3c 100644
--- a/src/gyrus-report.c
+++ b/src/gyrus-report.c
@@ -130,6 +130,7 @@ gyrus_report_show_report (GyrusAdmin *admin)
gtk_widget_show_all (report->window_report);
g_free (file_xml);
+ g_object_unref (builder);
}
diff --git a/src/gyrus-session.c b/src/gyrus-session.c
index 7766118..8b87021 100644
--- a/src/gyrus-session.c
+++ b/src/gyrus-session.c
@@ -808,6 +808,8 @@ gyrus_session_edit_load_interface (gpointer user_data)
button_session_edit_cancel = GTK_WIDGET (gtk_builder_get_object (builder, "button_session_edit_cancel"));
entry_name = GTK_WIDGET (gtk_builder_get_object (builder, "entry_name"));
+ g_object_unref (builder);
+
/* set model to combobox of mailbox hierarchy separator */
gtk_combo_box_set_model (GTK_COMBO_BOX (combobox_sep_char), GTK_TREE_MODEL (model_separator));
cell = gtk_cell_renderer_text_new();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]