Commit ec1b12e1 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

app/actions/plug-in-actions.c (plug_in_actions_add_branch)

2005-04-07  Sven Neumann  <sven@gimp.org>

	* app/actions/plug-in-actions.c (plug_in_actions_add_branch)
	* app/core/gimpinterpreterdb.c (resolve_extension)
	* app/widgets/gimpcolorframe.c (gimp_color_frame_update): plugged
	memleaks.
parent d0c80e76
2005-04-07 Sven Neumann <sven@gimp.org>
* app/actions/plug-in-actions.c (plug_in_actions_add_branch)
* app/core/gimpinterpreterdb.c (resolve_extension)
* app/widgets/gimpcolorframe.c (gimp_color_frame_update): plugged
memleaks.
2005-04-07 Sven Neumann <sven@gimp.org>
* app/widgets/gimpmessagebox.c: plugged a small memleak.
......
......@@ -270,7 +270,7 @@ dockable_actions_update (GimpActionGroup *group,
}
}
SET_VISIBLE ("dockable-tab-style-menu", n_pages > 1);
SET_VISIBLE ("dockable-tab-style-menu", n_pages > 1);
if (n_pages > 1)
{
......
......@@ -365,6 +365,9 @@ plug_in_actions_add_branch (GimpActionGroup *group,
plug_in_actions_build_path (group, full, full_translated);
else
plug_in_actions_build_path (group, full, full);
g_free (full_translated);
g_free (full);
}
......
......@@ -628,16 +628,23 @@ static gchar *
resolve_extension (GimpInterpreterDB *db,
const gchar *program_path)
{
gchar *filename, *p, *program;
gchar *filename;
gchar *p;
const gchar *program;
filename = g_path_get_basename (program_path);
p = strrchr (filename, '.');
if (! p)
return NULL;
{
g_free (filename);
return NULL;
}
program = g_hash_table_lookup (db->extensions, p + 1);
g_free (filename);
return g_strdup (program);
}
......
......@@ -628,16 +628,23 @@ static gchar *
resolve_extension (GimpInterpreterDB *db,
const gchar *program_path)
{
gchar *filename, *p, *program;
gchar *filename;
gchar *p;
const gchar *program;
filename = g_path_get_basename (program_path);
p = strrchr (filename, '.');
if (! p)
return NULL;
{
g_free (filename);
return NULL;
}
program = g_hash_table_lookup (db->extensions, p + 1);
g_free (filename);
return g_strdup (program);
}
......
......@@ -319,7 +319,7 @@ gimp_color_frame_update (GimpColorFrame *frame)
if (has_alpha)
{
names[alpha_row] = _("Alpha:");
names[alpha_row] = _("Alpha:");
if (frame->frame_mode == GIMP_COLOR_FRAME_MODE_PIXEL)
values[alpha_row] = g_strdup_printf ("%d", a);
......@@ -344,5 +344,7 @@ gimp_color_frame_update (GimpColorFrame *frame)
gtk_label_set_text (GTK_LABEL (frame->name_labels[i]), " ");
gtk_label_set_text (GTK_LABEL (frame->value_labels[i]), " ");
}
g_free (values[i]);
}
}
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