Skip to content

Commit

Permalink
OPENGL: Don't leak surfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzie committed Mar 28, 2012
1 parent b470c9a commit 29e05ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backends/graphics/opengl/opengl-graphics.cpp
Expand Up @@ -70,6 +70,11 @@ OpenGLGraphicsManager::~OpenGLGraphicsManager() {
free(_gamePalette);
free(_cursorPalette);

_screenData.free();
_overlayData.free();
_cursorData.free();
_osdSurface.free();

delete _gameTexture;
delete _overlayTexture;
delete _cursorTexture;
Expand Down

0 comments on commit 29e05ec

Please sign in to comment.