From 608989f6bf8ed53fcfef45f49465326d634040a5 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sun, 4 Aug 2013 18:49:02 +0200 Subject: [PATCH] ffplay: fix memleak of non-bitmap subtitles Signed-off-by: Marton Balint --- ffplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffplay.c b/ffplay.c index cfb927e631..53fb4730aa 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2048,6 +2048,8 @@ static int subtitle_thread(void *arg) SDL_LockMutex(is->subpq_mutex); is->subpq_size++; SDL_UnlockMutex(is->subpq_mutex); + } else if (got_subtitle) { + avsubtitle_free(&sp->sub); } av_free_packet(pkt); }