mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
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:
parent
a310ba7649
commit
aebd5ba6e0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user