forked from mirror/openmw-tes3mp
Fix videoplayer destruction issue that valgrind complained about
This commit is contained in:
parent
c8eb77c557
commit
7a2a7633d5
1 changed files with 6 additions and 1 deletions
7
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
7
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
|
@ -721,7 +721,12 @@ void VideoState::deinit()
|
|||
avformat_close_input(&this->format_ctx);
|
||||
}
|
||||
|
||||
mTexture = NULL;
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue