[clutter] stage: Protect call to unrealize() in dispose
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] stage: Protect call to unrealize() in dispose
- Date: Fri, 9 Sep 2011 12:55:20 +0000 (UTC)
commit c5ba998d64605b207b499221d7a484794e756c7a
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Sep 9 13:53:33 2011 +0100
stage: Protect call to unrealize() in dispose
Do not call ClutterStageWindow::unrealize() if the Stage has already
been unrealized.
clutter/clutter-stage.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c
index fe02984..0abe9e9 100644
--- a/clutter/clutter-stage.c
+++ b/clutter/clutter-stage.c
@@ -1631,7 +1631,9 @@ clutter_stage_dispose (GObject *object)
{
CLUTTER_NOTE (BACKEND, "Disposing of the stage implementation");
- _clutter_stage_window_unrealize (priv->impl);
+ if (CLUTTER_ACTOR_IS_REALIZED (object))
+ _clutter_stage_window_unrealize (priv->impl);
+
g_object_unref (priv->impl);
priv->impl = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]