diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-favorites-menu.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ephy-favorites-menu.c b/src/ephy-favorites-menu.c index 11af64de5..11d341062 100644 --- a/src/ephy-favorites-menu.c +++ b/src/ephy-favorites-menu.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002 Ricardo Fernández Pascual + * Copyright (C) 2002 Ricardo Fernández Pascual * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -134,10 +134,12 @@ ephy_favorites_menu_rebuild (EphyFavoritesMenu *wrhm) for (i = 0; i < children->len; i++) { - char *verb = g_strdup_printf ("GoFav%d", i); + char *verb; EphyNode *node; EggAction *action; + verb = g_strdup_printf ("GoFav%d", i); + node = g_ptr_array_index (children, i); action = ephy_bookmark_action_new (verb, @@ -153,6 +155,8 @@ ephy_favorites_menu_rebuild (EphyFavoritesMenu *wrhm) g_string_append (xml, "\" verb=\""); g_string_append (xml, verb); g_string_append (xml, "\"/>\n"); + + g_free (verb); } ephy_node_thaw (fav); |