From 90fdd58aafdc8e8d8f2537acf2c1800a76a8378e Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 27 Aug 2012 17:30:22 +0200 Subject: ido_menu_item_set_menu_item: make sure g_free isn't called with dangling pointer --- src/ido-menu-item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ido-menu-item.c b/src/ido-menu-item.c index cee032f..6b19d2a 100644 --- a/src/ido-menu-item.c +++ b/src/ido-menu-item.c @@ -321,7 +321,7 @@ ido_menu_item_set_menu_item (IdoMenuItem *self, { gchar *iconstr = NULL; GIcon *icon = NULL; - gchar *label; + gchar *label = NULL; gchar *action = NULL; if (g_menu_item_get_attribute (menuitem, "x-canonical-icon", "s", &iconstr)) -- cgit v1.2.3