diff --git a/src/video/quartz/SDL_QuartzVideo.m b/src/video/quartz/SDL_QuartzVideo.m index 400139cb6..bdd0b3a6f 100644 --- a/src/video/quartz/SDL_QuartzVideo.m +++ b/src/video/quartz/SDL_QuartzVideo.m @@ -373,6 +373,7 @@ static void QZ_UnsetVideoMode (_THIS) { [ qz_window setDelegate:nil ]; [ qz_window close ]; [ qz_window release ]; + qz_window = nil; /* Release the OpenGL context */ if ( mode_flags & SDL_OPENGL )