[mutter] renderer-native: Adjust to StageView memory handling changes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] renderer-native: Adjust to StageView memory handling changes
- Date: Wed, 20 Jul 2016 19:22:58 +0000 (UTC)
commit de1464f88f7abebfdcfd0d529b5a4e5057c9bfe2
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jul 20 20:56:07 2016 +0200
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index 117e522..a3763b1 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]