From 9f120e034fbec41837e1fc04d4cc4bfb198695e3 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sun, 28 Jul 2013 17:32:54 +0200 Subject: [PATCH] ffplay: free subtitle pictures on exit Signed-off-by: Marton Balint --- ffplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffplay.c b/ffplay.c index d462eee43a..cfb927e631 100644 --- a/ffplay.c +++ b/ffplay.c @@ -1018,6 +1018,8 @@ static void stream_close(VideoState *is) vp->bmp = NULL; } } + for (i = 0; i < SUBPICTURE_QUEUE_SIZE; i++) + free_subpicture(&is->subpq[i]); SDL_DestroyMutex(is->pictq_mutex); SDL_DestroyCond(is->pictq_cond); SDL_DestroyMutex(is->subpq_mutex);