[gimp/goat-invasion] app: the destroy functions ar gone from GEGL, use g_object_unref() instead



commit 49fd1e805c660dd3e2b47b79330d21c75097edb0
Author: Michael Natterer <mitch gimp org>
Date:   Thu Mar 29 23:08:27 2012 +0200

    app: the destroy functions ar gone from GEGL, use g_object_unref() instead

 app/tools/gimpcagetool.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 128a49b..8c08c1a 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -224,7 +224,7 @@ gimp_cage_tool_control (GimpTool       *tool,
 
       if (ct->coef)
         {
-          gegl_buffer_destroy (ct->coef);
+          g_object_unref (ct->coef);
           ct->coef = NULL;
         }
 
@@ -282,7 +282,7 @@ gimp_cage_tool_start (GimpCageTool *ct,
 
   if (ct->coef)
     {
-      gegl_buffer_destroy (ct->coef);
+      g_object_unref (ct->coef);
       ct->dirty_coef = TRUE;
       ct->coef = NULL;
     }
@@ -1097,7 +1097,7 @@ gimp_cage_tool_compute_coef (GimpCageTool *ct)
 
   if (ct->coef)
     {
-      gegl_buffer_destroy (ct->coef);
+      g_object_unref (ct->coef);
       ct->coef = NULL;
     }
 
@@ -1132,7 +1132,7 @@ gimp_cage_tool_compute_coef (GimpCageTool *ct)
   if (progress)
     gimp_progress_end (progress);
 
-  gegl_processor_destroy (processor);
+  g_object_unref (processor);
 
   ct->coef = buffer;
   g_object_unref (gegl);
@@ -1229,7 +1229,7 @@ gimp_cage_tool_render_node_update (GimpCageTool *ct)
   /* This just unref buffer, since gegl_node_get add a refcount on it */
   if (buffer)
     {
-      gegl_buffer_destroy (buffer);
+      g_object_unref (buffer);
     }
 }
 



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