renderer-native: Adjust to StageView memory handling changes

ClutterStageView now takes ownership of the :framebuffer property,
so we need to release our own reference.
This commit is contained in:
Florian Müllner 2016-07-20 20:56:07 +02:00
parent aebd5ba6e0
commit de1464f88f

View File

@ -1022,6 +1022,7 @@ meta_renderer_native_create_legacy_view (MetaRendererNative *renderer_native)
"layout", &view_layout, "layout", &view_layout,
"framebuffer", framebuffer, "framebuffer", framebuffer,
NULL); NULL);
cogl_object_unref (framebuffer);
meta_onscreen_native_set_view (onscreen, view); meta_onscreen_native_set_view (onscreen, view);
@ -1056,6 +1057,7 @@ meta_renderer_native_create_view (MetaRenderer *renderer,
"framebuffer", framebuffer, "framebuffer", framebuffer,
"monitor-info", monitor_info, "monitor-info", monitor_info,
NULL); NULL);
cogl_object_unref (framebuffer);
meta_onscreen_native_set_view (onscreen, view); meta_onscreen_native_set_view (onscreen, view);