aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-04-16 05:37:46 +0800
committerHans Petter <hansp@src.gnome.org>2003-04-16 05:37:46 +0800
commitbd5da6d3e16a9a5076ce6fd61b7abe9f7ecaf811 (patch)
tree3f425288682eab27196dd67d695c2ab2d6ba593b
parentf5ab5764e7e4ff1b7f154a39492b74bb1d299fed (diff)
downloadgsoc2013-evolution-bd5da6d3e16a9a5076ce6fd61b7abe9f7ecaf811.tar.gz
gsoc2013-evolution-bd5da6d3e16a9a5076ce6fd61b7abe9f7ecaf811.tar.zst
gsoc2013-evolution-bd5da6d3e16a9a5076ce6fd61b7abe9f7ecaf811.zip
Free the id when we're done with it.
2003-04-15 Hans Petter Jansson <hpj@ximian.com> * gal-view-instance.c (gal_view_instance_get_popup_menu): Free the id when we're done with it. svn path=/trunk/; revision=20854
-rw-r--r--widgets/menus/gal-view-instance.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/menus/gal-view-instance.c b/widgets/menus/gal-view-instance.c
index 674b942adf..85bda1ba6f 100644
--- a/widgets/menus/gal-view-instance.c
+++ b/widgets/menus/gal-view-instance.c
@@ -578,6 +578,9 @@ gal_view_instance_get_popup_menu (GalViewInstance *instance)
add_popup_menu_item (ret_val + i++, N_("Define Views..."), G_CALLBACK (define_views_cb), instance);
e_popup_menu_copy_1 (ret_val + i++, &terminator);
+ if (id)
+ g_free (id);
+
return ret_val;
}