[gimp/metadata-browser] app: plug a memory leak
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: plug a memory leak
- Date: Thu, 13 Sep 2012 00:27:42 +0000 (UTC)
commit b8350bad6a2ec4c898fc184fd06a1a3d44c39efa
Author: Massimo Valentini <mvalentini src gnome org>
Date: Sat Jul 7 18:47:02 2012 +0200
app: plug a memory leak
==7785== 96 bytes in 4 blocks are definitely lost in loss record 16,947 of 20,720
==7785== at 0x4A0884D: malloc (/builddir/build/BUILD/valgrind-3.7.0/coregrind/m_replacemalloc/vg_replace_malloc.c:263)
==7785== by 0x87F52DE: g_malloc (glib/glib/gmem.c:159)
==7785== by 0x8809741: g_slice_alloc (glib/glib/gslice.c:1003)
==7785== by 0x87EBF0D: g_list_prepend (glib/glib/glist.c:275)
==7785== by 0x6FA596: gimp_item_stack_get_item_list (gimp/app/core/gimpitemstack.c:175)
==7785== by 0x6D97B4: gimp_image_convert_precision (gimp/app/core/gimpimage-convert-precision.c:55)
==7785== by 0x49B62E: image_convert_precision_cmd_callback (gimp/app/actions/image-commands.c:236)
app/core/gimpimage-convert-precision.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimage-convert-precision.c b/app/core/gimpimage-convert-precision.c
index 26162a8..7243ffd 100644
--- a/app/core/gimpimage-convert-precision.c
+++ b/app/core/gimpimage-convert-precision.c
@@ -108,6 +108,7 @@ gimp_image_convert_precision (GimpImage *image,
gimp_progress_set_value (progress,
(gdouble) nth_drawable / (gdouble) n_drawables);
}
+ g_list_free (all_drawables);
/* convert the selection mask */
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]