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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/12/merge
Hendrik Leppkes 12 years ago committed by Michael Niedermayer
parent 84bf1cbef9
commit febd78e904
  1. 1
      libavutil/frame.c

@ -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);
}

Loading…
Cancel
Save