Commit febd78e9 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

lavu/frame: free frame metadata when unrefing a frame.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 84bf1cbe
......@@ -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);
}
......
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