vf_libvmaf: Fix memory leak

Fixes ticket #6967
This commit is contained in:
enctac 2018-03-26 01:44:49 +09:00 committed by Kyle Swanson
parent 35eeff30ca
commit be502ec6cd
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,8 @@ FRAMESYNC_DEFINE_CLASS(libvmaf, LIBVMAFContext, fs);
\
ret = !s->frame_set; \
\
av_frame_unref(s->gref); \
av_frame_unref(s->gmain); \
s->frame_set = 0; \
\
pthread_cond_signal(&s->cond); \