From cc594327cfd4c2742f40ea629d4fb0b6d0b35b52 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Sun, 30 Mar 2008 17:26:34 +0000 Subject: [PATCH] don't leak the memory allocated for the GSList. 2008-03-30 Sven Neumann * app/core/gimparea.c (gimp_area_list_free): don't leak the memory allocated for the GSList. svn path=/trunk/; revision=25317 --- ChangeLog | 5 +++++ app/core/gimparea.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 40caf09058..dc33b15cee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-30 Sven Neumann + + * app/core/gimparea.c (gimp_area_list_free): don't leak the memory + allocated for the GSList. + 2008-03-30 Sven Neumann * app/widgets/gimpcontainertreeview.c: added a finalizer that frees diff --git a/app/core/gimparea.c b/app/core/gimparea.c index f84f38efa3..fdbd010932 100644 --- a/app/core/gimparea.c +++ b/app/core/gimparea.c @@ -104,5 +104,5 @@ gimp_area_list_free (GSList *areas) for (list = areas; list; list = list->next) gimp_area_free (list->data); - g_slist_free (list); + g_slist_free (areas); }