summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.si>2020-05-28 16:34:09 +0200
committerTimotej Lazar <timotej.lazar@araneo.si>2020-05-30 02:32:31 +0200
commit1f5fc9343ad3e11cd66f85762c9a15233c302dbe (patch)
tree5081ecb94fca43aac58dbe27f7bc9659121852ea /src
parente6a01e237953f5ec8129c626ed928266523aa621 (diff)
Bink: free sws context when destroying a movie
Diffstat (limited to 'src')
-rw-r--r--src/bink.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bink.c b/src/bink.c
index 7b86e02..c9dfb16 100644
--- a/src/bink.c
+++ b/src/bink.c
@@ -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);
}