Commit 9f120e03 authored by Marton Balint's avatar Marton Balint

ffplay: free subtitle pictures on exit

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 3b2e99fe
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment