From 9ed010f14c049beb3c090c04411e3bdd73d6783d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 17 Apr 2002 14:25:23 +0000 Subject: [PATCH] Fixed crash in QZ_SetCaption() (thanks Darrell) --- src/video/quartz/SDL_QuartzVideo.m | 1 + 1 file changed, 1 insertion(+) 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 )