diff options
author | Milan Crha <mcrha@redhat.com> | 2011-02-15 02:15:36 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:35 +0800 |
commit | a4e2599f950cd2379a18a4c39cd27f87f090d492 (patch) | |
tree | fb1e71901c4824a0666f40d02c58a3ec72c9033c /calendar/gui/e-memo-table.c | |
parent | ecbb0bce4a854e7b617566f43a0b97f85bc63217 (diff) | |
download | gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.gz gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.zst gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.zip |
Fix few memory leaks
Diffstat (limited to 'calendar/gui/e-memo-table.c')
-rw-r--r-- | calendar/gui/e-memo-table.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c index 24c68905b4..9260c65411 100644 --- a/calendar/gui/e-memo-table.c +++ b/calendar/gui/e-memo-table.c @@ -347,6 +347,7 @@ memo_table_constructed (GObject *object) cell = e_cell_text_new (NULL, GTK_JUSTIFY_LEFT); g_object_set (cell, "bg_color_column", E_CAL_MODEL_FIELD_COLOR, NULL); e_table_extras_add_cell (extras, "calstring", cell); + g_object_unref (cell); /* * Date fields. @@ -377,6 +378,7 @@ memo_table_constructed (GObject *object) G_BINDING_SYNC_CREATE); e_table_extras_add_cell (extras, "dateedit", popup_cell); + g_object_unref (popup_cell); memo_table->dates_cell = E_CELL_DATE_EDIT (popup_cell); e_cell_date_edit_set_get_time_callback ( @@ -391,6 +393,8 @@ memo_table_constructed (GObject *object) cell = e_cell_toggle_new (icon_names, G_N_ELEMENTS (icon_names)); e_table_extras_add_cell (extras, "icon", cell); + g_object_unref (cell); + e_table_extras_add_icon_name (extras, "icon", "stock_notes"); /* set proper format component for a default 'date' cell renderer */ |