[clutter/wip/actor-content: 2/25] glx: Chain up in ::unrealize()



commit 2b6b68ad66149fd32e07b9d5f0f14a39630b576e
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Thu Apr 14 15:44:22 2011 +0100

    glx: Chain up in ::unrealize()
    
    And avoid a segmentation fault on stage destruction.

 clutter/glx/clutter-stage-glx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/glx/clutter-stage-glx.c b/clutter/glx/clutter-stage-glx.c
index 2a8a1ac..0c0ab01 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;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]