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:
Mathias Parnaudeau 2020-02-12 22:57:46 +01:00 committed by Paweł Kołodziejski
parent e41832141c
commit e395d8d15d
2 changed files with 2 additions and 0 deletions

View file

@ -239,6 +239,7 @@ GfxOpenGLS::GfxOpenGLS() {
}
GfxOpenGLS::~GfxOpenGLS() {
releaseMovieFrame();
for (unsigned int i = 0; i < _numSpecialtyTextures; i++) {
destroyTexture(&_specialtyTextures[i]);
}