aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-08-04 18:49:02 +0200
committerMarton Balint <cus@passwd.hu>2013-08-09 00:16:13 +0200
commit608989f6bf8ed53fcfef45f49465326d634040a5 (patch)
tree573f52093088e90460e78a2be5a3e601677a1bc5
parent9f120e034fbec41837e1fc04d4cc4bfb198695e3 (diff)
downloadffmpeg-608989f6bf8ed53fcfef45f49465326d634040a5.tar.gz
ffplay: fix memleak of non-bitmap subtitles
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--ffplay.c2
1 files changed, 2 insertions, 0 deletions
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);
}