projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
598e7a4
)
stage: Protect call to unrealize() in dispose
author
Emmanuele Bassi
<ebassi@linux.intel.com>
Fri, 9 Sep 2011 12:53:33 +0000
(13:53 +0100)
committer
Emmanuele Bassi
<ebassi@linux.intel.com>
Fri, 9 Sep 2011 12:53:33 +0000
(13:53 +0100)
Do not call ClutterStageWindow::unrealize() if the Stage has already
been unrealized.
clutter/clutter-stage.c
patch
|
blob
|
history
diff --git
a/clutter/clutter-stage.c
b/clutter/clutter-stage.c
index
fe02984
..
0abe9e9
100644
(file)
--- 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;
}