From bd5da6d3e16a9a5076ce6fd61b7abe9f7ecaf811 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Tue, 15 Apr 2003 21:37:46 +0000 Subject: Free the id when we're done with it. 2003-04-15 Hans Petter Jansson * gal-view-instance.c (gal_view_instance_get_popup_menu): Free the id when we're done with it. svn path=/trunk/; revision=20854 --- widgets/menus/gal-view-instance.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit