[mutter] stage-view: Fix memory handling of :framebuffer property
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] stage-view: Fix memory handling of :framebuffer property
- Date: Wed, 20 Jul 2016 19:22:53 +0000 (UTC)
commit aebd5ba6e09c01d85ffd5453ea7d3dde5ee3fc07
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jul 20 18:21:20 2016 +0200
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.
clutter/clutter/clutter-stage-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c
index 6a6cf33..87d6102 100644
--- a/clutter/clutter/clutter-stage-view.c
+++ b/clutter/clutter/clutter-stage-view.c
@@ -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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]