ffmpeg: free attachments, fix memleak
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 3 Feb 2013 01:45:41 +0000 (02:45 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 3 Feb 2013 02:09:23 +0000 (03:09 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg_opt.c

index a418e86..4f320b9 100644 (file)
@@ -126,6 +126,7 @@ static void uninit_options(OptionsContext *o, int is_input)
     av_freep(&o->stream_maps);
     av_freep(&o->audio_channel_maps);
     av_freep(&o->streamid_map);
+    av_freep(&o->attachments);
 
     if (is_input)
         recording_time = o->recording_time;