[FFmpeg-cvslog] r18853 - trunk/ffplay.c
cehoyos
subversion
Sat May 16 12:26:41 CEST 2009
Author: cehoyos
Date: Sat May 16 12:26:41 2009
New Revision: 18853
Log:
Add missing frees to stream_close() and do_exit().
Patch by Martin Storsj?, martin martin st
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Sat May 16 08:39:08 2009 (r18852)
+++ trunk/ffplay.c Sat May 16 12:26:41 2009 (r18853)
@@ -2188,6 +2188,7 @@ static void stream_close(VideoState *is)
SDL_DestroyCond(is->pictq_cond);
SDL_DestroyMutex(is->subpq_mutex);
SDL_DestroyCond(is->subpq_cond);
+ av_free(is);
}
static void stream_cycle_channel(VideoState *is, int codec_type)
@@ -2269,10 +2270,15 @@ static void step_to_next_frame(void)
static void do_exit(void)
{
+ int i;
if (cur_stream) {
stream_close(cur_stream);
cur_stream = NULL;
}
+ for (i = 0; i < CODEC_TYPE_NB; i++)
+ av_free(avcodec_opts[i]);
+ av_free(avformat_opts);
+ av_free(sws_opts);
if (show_status)
printf("\n");
SDL_Quit();
More information about the ffmpeg-cvslog
mailing list