fix crash on exit
This commit is contained in:
parent
ab000b6ae3
commit
9296b92d8f
1 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue