clutter-backend-win32: Use g_object_unref on the stage manager
Previously when trying to destroy all of the stages in the backend dispose function it would poke directly in the ClutterStageManager struct to get the list. In 8613013ab08 the defintion of ClutterStageManager moved to a different header which isn't included by the Win32 backend so it wouldn't compile. In that commit the X11 backend was changed to unref the stage manager instead of poking in the internals so we should do the same for the win32 backend.
This commit is contained in:
parent
907490d795
commit
f13f545aa9
@ -130,14 +130,9 @@ clutter_backend_win32_dispose (GObject *gobject)
|
||||
ClutterStageManager *stage_manager;
|
||||
|
||||
CLUTTER_NOTE (BACKEND, "Disposing the of stages");
|
||||
|
||||
stage_manager = clutter_stage_manager_get_default ();
|
||||
|
||||
/* Destroy all of the stages. g_slist_foreach is used because the
|
||||
finalizer for the stages will remove the stage from the
|
||||
stage_manager's list and g_slist_foreach has some basic
|
||||
protection against this */
|
||||
g_slist_foreach (stage_manager->stages, (GFunc) clutter_actor_destroy, NULL);
|
||||
g_object_unref (stage_manager);
|
||||
|
||||
CLUTTER_NOTE (BACKEND, "Removing the event source");
|
||||
_clutter_backend_win32_events_uninit (CLUTTER_BACKEND (backend_win32));
|
||||
|
Loading…
x
Reference in New Issue
Block a user