diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2020-05-28 16:34:09 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2020-05-30 02:32:31 +0200 |
| commit | 1f5fc9343ad3e11cd66f85762c9a15233c302dbe (patch) | |
| tree | 5081ecb94fca43aac58dbe27f7bc9659121852ea /src/bink.c | |
| parent | e6a01e237953f5ec8129c626ed928266523aa621 (diff) | |
Bink: free sws context when destroying a movie
Diffstat (limited to 'src/bink.c')
| -rw-r--r-- | src/bink.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -94,8 +94,11 @@ static void BinkReleaseMovie(struct binkMovie* aMovie) avcodec_free_context(&aMovie->videoCodecContext); if (aMovie->videoFrame) av_frame_free(&aMovie->videoFrame); - if (aMovie->videoScaleContext) + + if (aMovie->videoScaleContext) { + sws_freeContext(aMovie->videoScaleContext); av_freep(&aMovie->videoScalePicture[0]); + } BinkInitMovieStruct(aMovie); } |
