summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-07-28 17:32:54 +0200
committerMarton Balint <cus@passwd.hu>2013-08-09 00:16:13 +0200
commit9f120e034fbec41837e1fc04d4cc4bfb198695e3 (patch)
tree27d0b1873a21a1301f5de4eb3a9be02eaf814223 /ffplay.c
parent3b2e99fe9ec46580165daa233c273579bde1e913 (diff)
ffplay: free subtitle pictures on exit
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 2 insertions, 0 deletions
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);