[gimp/metadata-browser] app: don't leak all buffers in gimp_brush_core_replace_canvas()



commit 76ba71c54ab720649c8262d862cafff2acadb381
Author: Michael Natterer <mitch gimp org>
Date:   Mon May 7 02:47:39 2012 +0200

    app: don't leak all buffers in gimp_brush_core_replace_canvas()

 app/paint/gimpbrushcore.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/paint/gimpbrushcore.c b/app/paint/gimpbrushcore.c
index b5b4165..0492ba0 100644
--- a/app/paint/gimpbrushcore.c
+++ b/app/paint/gimpbrushcore.c
@@ -999,6 +999,8 @@ gimp_brush_core_replace_canvas (GimpBrushCore            *core,
                                brush_opacity,
                                image_opacity,
                                mode);
+
+      g_object_unref (paint_mask);
     }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]