mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
Fix videoplayer destruction issue that valgrind complained about
This commit is contained in:
parent
c8eb77c557
commit
7a2a7633d5
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…
x
Reference in New Issue
Block a user