diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2003-04-16 05:34:31 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-04-16 05:34:31 +0800 |
commit | f5ab5764e7e4ff1b7f154a39492b74bb1d299fed (patch) | |
tree | 4b44e42c70381c6f90f5120a826bb58b02bcad61 /widgets | |
parent | 106c466ccd8c68efd0e75862b883366ba2c930da (diff) | |
download | gsoc2013-evolution-f5ab5764e7e4ff1b7f154a39492b74bb1d299fed.tar gsoc2013-evolution-f5ab5764e7e4ff1b7f154a39492b74bb1d299fed.tar.gz gsoc2013-evolution-f5ab5764e7e4ff1b7f154a39492b74bb1d299fed.tar.bz2 gsoc2013-evolution-f5ab5764e7e4ff1b7f154a39492b74bb1d299fed.tar.lz gsoc2013-evolution-f5ab5764e7e4ff1b7f154a39492b74bb1d299fed.tar.xz gsoc2013-evolution-f5ab5764e7e4ff1b7f154a39492b74bb1d299fed.tar.zst gsoc2013-evolution-f5ab5764e7e4ff1b7f154a39492b74bb1d299fed.zip |
Don't unref the layout that was passed in. (e_table_header_draw_button):
2003-04-15 Hans Petter Jansson <hpj@ximian.com>
* e-table-header-utils.c (e_table_draw_elided_string): Don't unref
the layout that was passed in.
(e_table_header_draw_button): Always unref the layout when we're
done with it.
* e-tree-table-adapter.c (e_tree_table_adapter_load_expanded_state):
Free the id when we're done with it.
svn path=/trunk/; revision=20853
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/e-table-header-utils.c | 4 | ||||
-rw-r--r-- | widgets/table/e-tree-table-adapter.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c index fdbe5e201b..b9a0b9b8e5 100644 --- a/widgets/table/e-table-header-utils.c +++ b/widgets/table/e-table-header-utils.c @@ -308,8 +308,6 @@ e_table_draw_elided_string (GdkDrawable *drawable, GdkGC *gc, GtkWidget *widget, y + height / 2 + i + 1); } } - - g_object_unref (layout); } static GtkWidget *g_label; @@ -478,4 +476,6 @@ e_table_header_draw_button (GdkDrawable *drawable, ETableCol *ecol, inner_x, inner_y, layout, ecol->text, inner_width, TRUE); } + + g_object_unref (layout); } diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c index e167a1476f..8b041eb53c 100644 --- a/widgets/table/e-tree-table-adapter.c +++ b/widgets/table/e-tree-table-adapter.c @@ -983,6 +983,8 @@ e_tree_table_adapter_load_expanded_state (ETreeTableAdapter *etta, const char *f path = e_tree_model_get_node_by_id(etta->priv->source, id); if (path) e_tree_table_adapter_node_set_expanded(etta, path, !model_default); + + g_free (id); } xmlFreeDoc (doc); |