[gimp] app: the destroy functions are gone from GEGL, use g_object_unref() instead



commit 17f92b737961859f2eb6f2de7facaa1b2dea29cf
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Thu Mar 29 22:21:05 2012 +0100

    app: the destroy functions are 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 2c46e32..bd9c752 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -223,7 +223,7 @@ gimp_cage_tool_control (GimpTool       *tool,
 
       if (ct->coef)
         {
-          gegl_buffer_destroy (ct->coef);
+          g_object_unref (ct->coef);
           ct->coef = NULL;
         }
 
@@ -281,7 +281,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;
     }
@@ -1096,7 +1096,7 @@ gimp_cage_tool_compute_coef (GimpCageTool *ct)
 
   if (ct->coef)
     {
-      gegl_buffer_destroy (ct->coef);
+      g_object_unref (ct->coef);
       ct->coef = NULL;
     }
 
@@ -1131,7 +1131,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);
@@ -1257,7 +1257,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]