GRIM: Fix resource leak calling releaseMovieFrame
In EMI and GRIM games, a resource leak was found with OpenGL and OpenGL-shaders engines: releaseMovieFrame() was not called in the destructor of these graphics drivers (and never called at all on exit). This patch calls explicitely realeaseMovieFrame. Note that is was already done correctly with TinyGL.
This commit is contained in:
parent
e41832141c
commit
e395d8d15d
2 changed files with 2 additions and 0 deletions
|
@ -239,6 +239,7 @@ GfxOpenGLS::GfxOpenGLS() {
|
|||
}
|
||||
|
||||
GfxOpenGLS::~GfxOpenGLS() {
|
||||
releaseMovieFrame();
|
||||
for (unsigned int i = 0; i < _numSpecialtyTextures; i++) {
|
||||
destroyTexture(&_specialtyTextures[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue