From 3889272f52eced3b82f58ffef23a8fe21f27d7aa Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 14 Apr 2011 15:44:22 +0100 Subject: [PATCH] glx: Chain up in ::unrealize() And avoid a segmentation fault on stage destruction if the main loop keeps running. --- clutter/glx/clutter-stage-glx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/glx/clutter-stage-glx.c b/clutter/glx/clutter-stage-glx.c index 2a8a1ac7b..0c0ab015d 100644 --- a/clutter/glx/clutter-stage-glx.c +++ b/clutter/glx/clutter-stage-glx.c @@ -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; }