diff options
author | Simon Howard | 2011-10-13 20:19:42 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-13 20:19:42 +0000 |
commit | c58ed9c72dc84c8eb6f392d4d437454c15177620 (patch) | |
tree | f4b502421309ab7e40d4d77246242ebcc871c7ba | |
parent | de3a8f767826d1aeb887da5e24140cd29790abf4 (diff) | |
download | chocolate-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.c | 1 |
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); } |