[gegl] gegl: Ensure that the GeglProcessor's context is removed
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: Ensure that the GeglProcessor's context is removed
- Date: Thu, 4 Mar 2010 00:22:49 +0000 (UTC)
commit fc674b5420cbc48f4dc6224381b8799db4e7afc4
Author: Debarshi Ray <debarshir src gnome org>
Date: Thu Mar 4 02:16:48 2010 +0200
gegl: Ensure that the GeglProcessor's context is removed
If gegl_processor_work is not invoked to completion, the context is
not removed. If it exists when finalizing the GeglProcessor then
remove it.
gegl/process/gegl-processor.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gegl/process/gegl-processor.c b/gegl/process/gegl-processor.c
index 364a992..08cde35 100644
--- a/gegl/process/gegl-processor.c
+++ b/gegl/process/gegl-processor.c
@@ -160,6 +160,12 @@ gegl_processor_finalize (GObject *self_object)
{
GeglProcessor *processor = GEGL_PROCESSOR (self_object);
+ if (processor->context)
+ {
+ GeglCache *cache = gegl_node_get_cache (processor->input);
+ gegl_node_remove_context (processor->node, cache);
+ }
+
if (processor->node)
{
g_object_unref (processor->node);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]