summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2011-10-13 20:19:42 +0000
committerSimon Howard2011-10-13 20:19:42 +0000
commitc58ed9c72dc84c8eb6f392d4d437454c15177620 (patch)
treef4b502421309ab7e40d4d77246242ebcc871c7ba
parentde3a8f767826d1aeb887da5e24140cd29790abf4 (diff)
downloadchocolate-doom-c58ed9c72dc84c8eb6f392d4d437454c15177620.tar.gz
chocolate-doom-c58ed9c72dc84c8eb6f392d4d437454c15177620.tar.bz2
chocolate-doom-c58ed9c72dc84c8eb6f392d4d437454c15177620.zip
Fix crash when calling TXT_Shutdown twice.
Subversion-branch: /branches/v2-branch Subversion-revision: 2418
-rw-r--r--textscreen/txt_sdl.c1
1 files changed, 1 insertions, 0 deletions
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);
}