summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2009-05-16 10:26:41 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-05-16 10:26:41 +0000
commit7c5ab14540f9c3dd027dbaff5ab5153ca1c3ee75 (patch)
tree90b48894e3b1c6d96a52cf5dea3e4977114a1fab /ffplay.c
parentb3867c93d10b42dae1aeb1e8fa6059c5b87c28a5 (diff)
Add missing frees to stream_close() and do_exit().
Patch by Martin Storsjö, martin martin st Originally committed as revision 18853 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index cc12b4a97d..299f4a0c31 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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();