stage-view: Fix memory handling of :framebuffer property

Currently the setter doesn't take ownership of the value, but dispose()
will unref it (and thus release someone else's reference). Fix this by
taking ownership of the property value in the setter.
This commit is contained in:
Florian Müllner 2016-07-20 18:21:20 +02:00
parent a310ba7649
commit aebd5ba6e0

View File

@ -139,7 +139,7 @@ clutter_stage_view_set_property (GObject *object,
priv->layout = *layout;
break;
case PROP_FRAMEBUFFER:
priv->framebuffer = g_value_get_boxed (value);
priv->framebuffer = g_value_dup_boxed (value);
break;
}
}