[gnome-photos/wip/rishi/misc-fixes: 18/20] pipeline: Drop the reference on the parent once we are done with it
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/misc-fixes: 18/20] pipeline: Drop the reference on the parent once we are done with it
- Date: Wed, 16 Dec 2015 11:59:27 +0000 (UTC)
commit 195b926f328d0822bd12fa7b1e1dfeb928024e3c
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 806747d..eed5e9c 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -96,6 +96,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]