1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 14:59:54 +00:00

Fix videoplayer destruction issue that valgrind complained about

This commit is contained in:
scrawl 2015-05-08 17:11:40 +02:00
parent c8eb77c557
commit 7a2a7633d5

View file

@ -721,8 +721,13 @@ void VideoState::deinit()
avformat_close_input(&this->format_ctx);
}
if (mTexture)
{
// reset Image separately, it's pointing to *this and there might still be outside references to mTexture
mTexture->setImage(NULL);
mTexture = NULL;
}
}
double VideoState::get_external_clock()
{