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

This commit is contained in:
Øyvind Kolås 2012-03-29 22:21:05 +01:00
parent eea7a40dbc
commit 17f92b7379
1 changed files with 5 additions and 5 deletions

View File

@ -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);
}
}