[gnome-photos] pipeline: Drop the reference on the parent once we are done with it



commit 02f698a6e227fe4908eade2b2ba4ca053b41f8b7
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Dec 15 20:24:45 2015 +0100

    pipeline: Drop the reference on the parent once we are done with it
    
    Even though there is no reference cycle, we are very close to having
    one, and since there is no need to keep the strong reference around,
    let's not make our lives needlessly complicated.

 src/photos-pipeline.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-pipeline.c b/src/photos-pipeline.c
index 7b2a2d1..984b312 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -94,6 +94,8 @@ photos_pipeline_constructed (GObject *object)
   input = gegl_node_get_input_proxy (self->graph, "input");
   output = gegl_node_get_output_proxy (self->graph, "output");
   gegl_node_link (input, output);
+
+  g_clear_object (&self->parent); /* We will not need it any more */
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]