timeline-element: Do not give a reference to the calles of g_object_get_property
authorThibault Saunier <thibault.saunier@collabora.com>
Mon, 18 Mar 2013 13:03:19 +0000 (10:03 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Tue, 19 Mar 2013 23:06:30 +0000 (20:06 -0300)
... for both the "parent" and the "timeline" properties

Making things simpler to handle for the copy method.

ges/ges-timeline-element.c

index eb71830..d5a199b 100644 (file)
@@ -76,10 +76,10 @@ _get_property (GObject * object, guint property_id,
 
   switch (property_id) {
     case PROP_PARENT:
-      g_value_set_object (value, self->parent);
+      g_value_take_object (value, self->parent);
       break;
     case PROP_TIMELINE:
-      g_value_set_object (value, self->timeline);
+      g_value_take_object (value, self->timeline);
       break;
     case PROP_START:
       g_value_set_uint64 (value, self->start);