From de1464f88f7abebfdcfd0d529b5a4e5057c9bfe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 20 Jul 2016 20:56:07 +0200 Subject: [PATCH] renderer-native: Adjust to StageView memory handling changes ClutterStageView now takes ownership of the :framebuffer property, so we need to release our own reference. --- src/backends/native/meta-renderer-native.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index 117e522c9..a3763b1b8 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -1022,6 +1022,7 @@ meta_renderer_native_create_legacy_view (MetaRendererNative *renderer_native) "layout", &view_layout, "framebuffer", framebuffer, NULL); + cogl_object_unref (framebuffer); meta_onscreen_native_set_view (onscreen, view); @@ -1056,6 +1057,7 @@ meta_renderer_native_create_view (MetaRenderer *renderer, "framebuffer", framebuffer, "monitor-info", monitor_info, NULL); + cogl_object_unref (framebuffer); meta_onscreen_native_set_view (onscreen, view);