From f13f545aa9824ed53ea5a78878c7f96d40239e48 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 1 Nov 2010 15:13:12 +0000 Subject: [PATCH] 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. --- clutter/win32/clutter-backend-win32.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/clutter/win32/clutter-backend-win32.c b/clutter/win32/clutter-backend-win32.c index 79876e6ac..3704bb347 100644 --- a/clutter/win32/clutter-backend-win32.c +++ b/clutter/win32/clutter-backend-win32.c @@ -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));