From 17f92b737961859f2eb6f2de7facaa1b2dea29cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Thu, 29 Mar 2012 22:21:05 +0100 Subject: [PATCH] app: the destroy functions are gone from GEGL, use g_object_unref() instead --- app/tools/gimpcagetool.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c index 2c46e3217e..bd9c7527ec 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); } }