=== modified file 'src/desktop.cpp' --- src/desktop.cpp 2011-02-21 22:28:50 +0000 +++ src/desktop.cpp 2011-02-24 21:21:50 +0000 @@ -779,6 +779,8 @@ ( ((NRRect *) ((*history)->data))->y1 == old_zoom->y1 ) ) ) { *history = g_list_prepend (*history, old_zoom); + } else { + g_free(old_zoom); } } === modified file 'src/ege-adjustment-action.cpp' --- src/ege-adjustment-action.cpp 2010-05-18 11:54:03 +0000 +++ src/ege-adjustment-action.cpp 2011-03-19 20:30:39 +0000 @@ -784,6 +784,7 @@ subby = create_popup_number_menu( act ); gtk_menu_item_set_submenu( GTK_MENU_ITEM(item), subby ); gtk_widget_show_all( subby ); + g_value_unset( &value ); } else { item = gParentClass->create_menu_item( action ); } @@ -869,6 +870,7 @@ } gtk_tooltips_set_tip( act->private_data->toolTips, spinbutton, tipstr, 0 ); } + g_value_unset( &tooltip ); } if ( act->private_data->appearanceMode != APPEARANCE_FULL ) { @@ -921,6 +923,7 @@ if ( act->private_data->toolPost ) { act->private_data->toolPost( item ); } + g_value_unset( &value ); } else { item = gParentClass->create_tool_item( action ); } === modified file 'src/ege-output-action.cpp' --- src/ege-output-action.cpp 2007-12-04 08:02:08 +0000 +++ src/ege-output-action.cpp 2011-03-19 20:31:14 +0000 @@ -222,6 +222,7 @@ gtk_container_add( GTK_CONTAINER(item), hb ); gtk_widget_show_all( item ); + g_value_unset( &value ); } else { item = gParentClass->create_tool_item( action ); } === modified file 'src/ege-select-one-action.cpp' --- src/ege-select-one-action.cpp 2010-05-22 05:04:23 +0000 +++ src/ege-select-one-action.cpp 2011-03-18 03:43:11 +0000 @@ -673,6 +673,7 @@ lbl = gtk_label_new(sss); gtk_box_pack_start( GTK_BOX(holder), lbl, FALSE, FALSE, 4 ); } + g_free( sss ); valid = gtk_tree_model_get_iter_first( act->private_data->model, &iter ); while ( valid ) { @@ -817,6 +818,7 @@ lbl = gtk_label_new(sss); gtk_box_pack_start( GTK_BOX(holder), lbl, FALSE, FALSE, 4 ); } + g_free( sss ); } gtk_box_pack_start( GTK_BOX(holder), normal, FALSE, FALSE, 0 ); === modified file 'src/extension/internal/filter/filter-file.cpp' --- src/extension/internal/filter/filter-file.cpp 2010-04-01 08:14:55 +0000 +++ src/extension/internal/filter/filter-file.cpp 2011-02-24 20:55:32 +0000 @@ -29,8 +29,12 @@ void Filter::filters_all_files (void) { + gchar *filters_profile_path = profile_path("filters"); + filters_load_dir(INKSCAPE_FILTERDIR, _("Bundled")); - filters_load_dir(profile_path("filters"), _("Personal")); + filters_load_dir(filters_profile_path, _("Personal")); + + g_free(filters_profile_path); return; } === modified file 'src/ink-action.cpp' --- src/ink-action.cpp 2009-04-16 18:23:38 +0000 +++ src/ink-action.cpp 2011-03-18 03:44:22 +0000 @@ -444,6 +444,7 @@ gchar *label; g_object_get (G_OBJECT(action), "short_label", &label, NULL); gtk_tool_button_set_label( button, label ); + g_free( label ); } } else { // For now trigger a warning but don't do anything else === modified file 'src/inkscape.cpp' --- src/inkscape.cpp 2010-12-12 08:40:34 +0000 +++ src/inkscape.cpp 2011-02-24 20:56:30 +0000 @@ -877,7 +877,6 @@ */ bool inkscape_load_menus (Inkscape::Application */*inkscape*/) { - // TODO fix that fn is being leaked gchar *fn = profile_path(MENUS_FILE); gchar *menus_xml = NULL; gsize len = 0; @@ -891,6 +890,7 @@ } } INKSCAPE->menus = sp_repr_read_mem(menus_skeleton, MENUS_SKELETON_SIZE, NULL); + g_free(fn); return (INKSCAPE->menus != 0); } === modified file 'src/interface.cpp' --- src/interface.cpp 2011-02-21 22:28:50 +0000 +++ src/interface.cpp 2011-02-24 21:37:07 +0000 @@ -780,8 +780,11 @@ continue; // skip non-svg files gchar *basename = g_path_get_basename(file); - if (g_str_has_suffix(basename, ".svg") && g_str_has_prefix(basename, "default.")) + if (g_str_has_suffix(basename, ".svg") && g_str_has_prefix(basename, "default.")) { + g_free(basename); continue; // skip default.*.svg (i.e. default.svg and translations) - it's in the menu already + } + g_free(basename); gchar const *filepath = g_build_filename(dirname, file, NULL); gchar *dupfile = g_strndup(file, strlen(file) - 4); === modified file 'src/preferences.cpp' --- src/preferences.cpp 2010-11-17 02:12:56 +0000 +++ src/preferences.cpp 2011-02-24 19:58:48 +0000 @@ -662,6 +662,7 @@ g_strfreev(splits); return node; } else { + g_strfreev(splits); return NULL; } }