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.
This commit is contained in:
Sven Neumann 2005-04-07 00:04:10 +00:00 committed by Sven Neumann
parent d0c80e7629
commit ec1b12e14e
6 changed files with 32 additions and 6 deletions

View File

@ -1,3 +1,10 @@
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.

View File

@ -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)
{

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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]);
}
}