From 169df02a565a20810825180d217e6aa52c4c1965 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 13 Feb 2011 19:26:29 +0000 Subject: [PATCH] stage: Call ClutterStageWindow::unrealize() on dispose Since we realize on creation we need to unrealize on destruction. This makes sure that the ClutterStageWindow implementation can tear down any resource set up during the realization phase. http://bugzilla.clutter-project.org/show_bug.cgi?id=2559 --- clutter/clutter-stage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index 750b138df..1334b2189 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -1176,6 +1176,7 @@ clutter_stage_dispose (GObject *object) { CLUTTER_NOTE (BACKEND, "Disposing of the stage implementation"); + _clutter_stage_window_unrealize (priv->impl); g_object_unref (priv->impl); priv->impl = NULL; }