From f5ab5764e7e4ff1b7f154a39492b74bb1d299fed Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Tue, 15 Apr 2003 21:34:31 +0000 Subject: Don't unref the layout that was passed in. (e_table_header_draw_button): 2003-04-15 Hans Petter Jansson * 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 --- widgets/table/e-table-header-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets/table/e-table-header-utils.c') 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); } -- cgit