[gnumeric] GUI: Another leak.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: Another leak.
- Date: Wed, 23 Feb 2011 18:14:34 +0000 (UTC)
commit c357bbf94c04e42ed93bf54367179989e57f954d
Author: Morten Welinder <terra gnome org>
Date: Wed Feb 23 13:14:22 2011 -0500
GUI: Another leak.
src/dialogs/ChangeLog | 2 ++
src/dialogs/dialog-autoformat.c | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index f023d4a..8b2411b 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,7 @@
2011-02-23 Morten Welinder <terra gnome org>
+ * dialog-autoformat.c (dialog_autoformat): Plug leak.
+
* dialog-scenarios.c (update_scenarios_treeview): Plug leak.
* dialog-workbook-attr.c (attr_dialog_impl): Plug leak.
diff --git a/src/dialogs/dialog-autoformat.c b/src/dialogs/dialog-autoformat.c
index a2ccff3..740da4d 100644
--- a/src/dialogs/dialog-autoformat.c
+++ b/src/dialogs/dialog-autoformat.c
@@ -679,10 +679,11 @@ dialog_autoformat (WBCGtk *wbcg)
GtkTreeIter iter;
GtkCellRenderer *renderer = (GtkCellRenderer*) gtk_cell_renderer_text_new();
gtk_combo_box_set_model (state->category, GTK_TREE_MODEL (store));
+ g_object_unref (store);
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (state->category), renderer, TRUE);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (state->category), renderer,
- "text", 0,
- NULL);
+ "text", 0,
+ NULL);
for (i = 0 ; ptr != NULL ; ptr = ptr->next, i++) {
FormatTemplateCategoryGroup *group = ptr->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]