diff options
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index 8682c54921..2acdffa3b0 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -72,12 +72,9 @@ OpenGLGraphicsManager::~OpenGLGraphicsManager() { free(_gamePalette); free(_cursorPalette); - if (_gameTexture != NULL) - delete _gameTexture; - if (_overlayTexture != NULL) - delete _overlayTexture; - if (_cursorTexture != NULL) - delete _cursorTexture; + delete _gameTexture; + delete _overlayTexture; + delete _cursorTexture; } void OpenGLGraphicsManager::initEventObserver() { |