glx: Chain up in ::unrealize()

And avoid a segmentation fault on stage destruction if the main loop
keeps running.
This commit is contained in:
Emmanuele Bassi 2011-04-14 15:44:22 +01:00
parent 94c30a4f67
commit 3889272f52

View File

@ -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;
}