shithub: choc

Download patch

ref: c58ed9c72dc84c8eb6f392d4d437454c15177620
parent: de3a8f767826d1aeb887da5e24140cd29790abf4
author: Simon Howard <fraggle@gmail.com>
date: Thu Oct 13 16:19:42 EDT 2011

Fix crash when calling TXT_Shutdown twice.

Subversion-branch: /branches/v2-branch
Subversion-revision: 2418

--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -240,6 +240,7 @@
 void TXT_Shutdown(void)
 {
     free(screendata);
+    screendata = NULL;
     SDL_QuitSubSystem(SDL_INIT_VIDEO);
 }