Commit 410a6ffa authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

plugged a memory leak.

2007-11-15  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpselectionoptions.c (gimp_selection_options_gui):
	plugged a memory leak.

	* libgimpwidgets/gimpintstore.c (gimp_int_store_add_empty):
	initialize the iter to avoid using uninitialized memory.


svn path=/trunk/; revision=24169
parent 1107d5a2
2007-11-15 Sven Neumann <sven@gimp.org>
* app/tools/gimpselectionoptions.c (gimp_selection_options_gui):
plugged a memory leak.
* libgimpwidgets/gimpintstore.c (gimp_int_store_add_empty):
initialize the iter to avoid using uninitialized memory.
2007-11-15 Sven Neumann <sven@gimp.org> 2007-11-15 Sven Neumann <sven@gimp.org>
* plug-ins/common/screenshot.c: don't call gimp_edit_clear() if * plug-ins/common/screenshot.c: don't call gimp_edit_clear() if
......
...@@ -321,7 +321,9 @@ gimp_selection_options_gui (GimpToolOptions *tool_options) ...@@ -321,7 +321,9 @@ gimp_selection_options_gui (GimpToolOptions *tool_options)
gchar *tip = g_strdup_printf ("%s <b>%s</b>", tooltip, modifier); gchar *tip = g_strdup_printf ("%s <b>%s</b>", tooltip, modifier);
gimp_help_set_help_data (button, tip, NULL); gimp_help_set_help_data (button, tip, NULL);
g_free (tip); g_free (tip);
g_free (tooltip);
} }
else else
{ {
......
...@@ -229,7 +229,7 @@ gimp_int_store_row_inserted (GtkTreeModel *model, ...@@ -229,7 +229,7 @@ gimp_int_store_row_inserted (GtkTreeModel *model,
static void static void
gimp_int_store_add_empty (GimpIntStore *store) gimp_int_store_add_empty (GimpIntStore *store)
{ {
GtkTreeIter iter; GtkTreeIter iter = { 0, };
g_return_if_fail (store->empty_iter == NULL); g_return_if_fail (store->empty_iter == NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment