[gimp] app: fix tentative gradient leak in the blend tool editor



commit 2bbb0f509b2f93392c2b6df4b2438e7784f3c977
Author: Ell <ell_se yahoo com>
Date:   Wed Oct 18 14:25:26 2017 -0400

    app: fix tentative gradient leak in the blend tool editor

 app/tools/gimpblendtool-editor.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpblendtool-editor.c b/app/tools/gimpblendtool-editor.c
index 8930cb7..ce70dde 100644
--- a/app/tools/gimpblendtool-editor.c
+++ b/app/tools/gimpblendtool-editor.c
@@ -261,6 +261,8 @@ gimp_blend_tool_editor_line_prepare_to_remove_slider (GimpToolLine  *line,
                                          seg, seg->next, NULL, NULL);
 
       gimp_blend_tool_set_tentative_gradient (blend_tool, tentative_gradient);
+
+      g_object_unref (tentative_gradient);
     }
   else
     {


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