From: Wolfgang Becker Date: Thu, 28 Aug 2008 21:24:03 +0000 (+0000) Subject: Prevent crash on exit. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0469a50d835efcb32a065f4e01f61fe5732a976e;p=supertux.git Prevent crash on exit. SVN-Revision: 5755 --- diff --git a/src/video/gl_lightmap.cpp b/src/video/gl_lightmap.cpp index b58f66a90..9287becae 100644 --- a/src/video/gl_lightmap.cpp +++ b/src/video/gl_lightmap.cpp @@ -152,7 +152,9 @@ namespace GL Lightmap::~Lightmap() { - texture_manager->remove_texture(lightmap); + if(texture_manager){ + texture_manager->remove_texture(lightmap); + } delete lightmap; }