[gimp/soc-2013-n-point-deformation-tool: 25/25] app: npd-tool: let GEGL NPD operation destroy the model



commit b31fc8b2641492ffa24a397d04cbbe43ea88740b
Author: Marek Dvoroznak <dvoromar gmail com>
Date:   Fri Dec 6 05:54:39 2013 +0100

    app: npd-tool: let GEGL NPD operation destroy the model

 app/tools/gimpnpointdeformationtool.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimpnpointdeformationtool.c b/app/tools/gimpnpointdeformationtool.c
index 1c1b2a1..ff1b3fa 100644
--- a/app/tools/gimpnpointdeformationtool.c
+++ b/app/tools/gimpnpointdeformationtool.c
@@ -369,9 +369,6 @@ gimp_n_point_deformation_tool_halt (GimpNPointDeformationTool *npd_tool)
   npd_tool->preview_buffer = NULL;
   g_free (npd_tool->lattice_points);
 
-  if (npd_tool->model != NULL)
-    npd_destroy_model (npd_tool->model);
-
   tool->display = npd_tool->display = NULL;
 }
 
@@ -933,6 +930,7 @@ gimp_n_point_deformation_tool_perform_deformation (GimpNPointDeformationTool *np
                 NULL);
   gimp_npd_debug (("gegl_operation_invalidate\n"));
   gegl_operation_invalidate (GEGL_OPERATION (operation), NULL, FALSE);
+  g_object_unref (operation);
 
   gimp_npd_debug (("gegl_node_process\n"));
   gegl_node_process (npd_tool->sink);


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