core: Fix GEGL warning after bucket fill
In 6279d7b7, I did not free the GEGL buffer created
by gimp_pickable_get_buffer_with_effects ().
This resulted in an "EEEEeEeek! 1 GeglBuffers leaked"
warning on exit, which of course could cumulate.
This patch makes to sure to clear out the src_buffer
both times it's used.
This commit is contained in:
parent
693f46dc67
commit
581afd1516
1 changed files with 4 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ gimp_pickable_contiguous_region_by_seed (GimpPickable *pickable,
|
|||
gint x,
|
||||
gint y)
|
||||
{
|
||||
GeglBuffer *src_buffer;
|
||||
GeglBuffer *src_buffer = NULL;
|
||||
GeglBuffer *mask_buffer;
|
||||
const Babl *format;
|
||||
GeglRectangle extent;
|
||||
|
|
@ -184,6 +184,7 @@ gimp_pickable_contiguous_region_by_seed (GimpPickable *pickable,
|
|||
|
||||
GIMP_TIMER_END("foo");
|
||||
}
|
||||
g_clear_object (&src_buffer);
|
||||
|
||||
return mask_buffer;
|
||||
}
|
||||
|
|
@ -202,7 +203,7 @@ gimp_pickable_contiguous_region_by_color (GimpPickable *pickable,
|
|||
* fuzzy_select. Modify the pickable's mask to reflect the
|
||||
* additional selection
|
||||
*/
|
||||
GeglBuffer *src_buffer;
|
||||
GeglBuffer *src_buffer = NULL;
|
||||
GeglBuffer *mask_buffer;
|
||||
const Babl *format;
|
||||
gint n_components;
|
||||
|
|
@ -283,6 +284,7 @@ gimp_pickable_contiguous_region_by_color (GimpPickable *pickable,
|
|||
}
|
||||
}
|
||||
});
|
||||
g_clear_object (&src_buffer);
|
||||
|
||||
return mask_buffer;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue