cogl/stage: Protect against multiple invocation of unrealize()
This commit is contained in:
parent
802b9d463c
commit
598e7a4a7e
@ -71,8 +71,11 @@ clutter_stage_cogl_unrealize (ClutterStageWindow *stage_window)
|
|||||||
clutter_stage_window_parent_iface->unrealize (stage_window);
|
clutter_stage_window_parent_iface->unrealize (stage_window);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cogl_object_unref (stage_cogl->onscreen);
|
if (stage_cogl->onscreen != NULL)
|
||||||
stage_cogl->onscreen = NULL;
|
{
|
||||||
|
cogl_object_unref (stage_cogl->onscreen);
|
||||||
|
stage_cogl->onscreen = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user