lavu/frame: free frame metadata when unrefing a frame.
authorHendrik Leppkes <h.leppkes@gmail.com>
Wed, 13 Mar 2013 16:51:07 +0000 (17:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 13 Mar 2013 19:16:49 +0000 (20:16 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/frame.c

index fe2f40c..58e77c7 100644 (file)
@@ -310,6 +310,7 @@ void av_frame_unref(AVFrame *frame)
     for (i = 0; i < frame->nb_extended_buf; i++)
         av_buffer_unref(&frame->extended_buf[i]);
     av_freep(&frame->extended_buf);
+    av_dict_free(&frame->metadata);
     get_frame_defaults(frame);
 }