From c58ed9c72dc84c8eb6f392d4d437454c15177620 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 13 Oct 2011 20:19:42 +0000 Subject: Fix crash when calling TXT_Shutdown twice. Subversion-branch: /branches/v2-branch Subversion-revision: 2418 --- textscreen/txt_sdl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'textscreen') diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c index 477fdb52..c22580fe 100644 --- a/textscreen/txt_sdl.c +++ b/textscreen/txt_sdl.c @@ -240,6 +240,7 @@ int TXT_Init(void) void TXT_Shutdown(void) { free(screendata); + screendata = NULL; SDL_QuitSubSystem(SDL_INIT_VIDEO); } -- cgit v1.2.3