From 12f91643abed9ec4333bc201d7986b9694deecf8 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sat, 1 Nov 2003 20:33:27 +0000 Subject: [PATCH] plug a memleak 2003-11-01 Manish Singh * app/core/gimppalette.c (gimp_palette_load): plug a memleak --- ChangeLog | 4 ++++ app/core/gimppalette-load.c | 1 + app/core/gimppalette-save.c | 1 + app/core/gimppalette.c | 1 + 4 files changed, 7 insertions(+) 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)) {