fix crash on exit

This commit is contained in:
Martin T. H. Sandsmark 2018-07-17 12:47:51 +02:00 committed by Filippos Karapetis
parent ab000b6ae3
commit 9296b92d8f

View file

@ -153,14 +153,6 @@ OSystem_SDL::~OSystem_SDL() {
delete _mutexManager;
_mutexManager = 0;
#ifdef USE_OPENGL
for (uint i = 0; i < _graphicsModes.size(); ++i) {
// SurfaceSDL needs us to free these
free(const_cast<char *>(_graphicsModes[i].name));
free(const_cast<char *>(_graphicsModes[i].description));
}
#endif
delete _logger;
_logger = 0;