glx: Chain up in ::unrealize()
And avoid a segmentation fault on stage destruction if the main loop keeps running.
This commit is contained in:
parent
94c30a4f67
commit
3889272f52
@ -72,6 +72,9 @@ clutter_stage_glx_unrealize (ClutterStageWindow *stage_window)
|
||||
/* Note unrealize should free up any backend stage related resources */
|
||||
CLUTTER_NOTE (BACKEND, "Unrealizing GLX stage [%p]", stage_glx);
|
||||
|
||||
/* chain up to the StageX11 implementation */
|
||||
clutter_stage_window_parent_iface->unrealize (stage_window);
|
||||
|
||||
cogl_object_unref (stage_glx->onscreen);
|
||||
stage_glx->onscreen = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user