diff --git a/ChangeLog b/ChangeLog index f2001d497d..bd9c036a4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-11-01 Manish Singh + + * app/core/gimppalette.c (gimp_palette_load): plug a memleak + 2003-11-01 Manish Singh * plug-ins/print/print_gimp.h: don't try to define inline, glib diff --git a/app/core/gimppalette-load.c b/app/core/gimppalette-load.c index 0f8bc6657f..9282f2ba62 100644 --- a/app/core/gimppalette-load.c +++ b/app/core/gimppalette-load.c @@ -439,6 +439,7 @@ gimp_palette_load (const gchar *filename, g_strstrip (utf8); gimp_object_set_name (GIMP_OBJECT (palette), utf8); + g_free (utf8); if (! fgets (str, 1024, fp)) { diff --git a/app/core/gimppalette-save.c b/app/core/gimppalette-save.c index 0f8bc6657f..9282f2ba62 100644 --- a/app/core/gimppalette-save.c +++ b/app/core/gimppalette-save.c @@ -439,6 +439,7 @@ gimp_palette_load (const gchar *filename, g_strstrip (utf8); gimp_object_set_name (GIMP_OBJECT (palette), utf8); + g_free (utf8); if (! fgets (str, 1024, fp)) { diff --git a/app/core/gimppalette.c b/app/core/gimppalette.c index 0f8bc6657f..9282f2ba62 100644 --- a/app/core/gimppalette.c +++ b/app/core/gimppalette.c @@ -439,6 +439,7 @@ gimp_palette_load (const gchar *filename, g_strstrip (utf8); gimp_object_set_name (GIMP_OBJECT (palette), utf8); + g_free (utf8); if (! fgets (str, 1024, fp)) {