avutil/frame: Free destination qp_table_buf in frame_copy_props()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Feb 2016 19:57:26 +0000 (20:57 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Feb 2016 19:57:26 +0000 (20:57 +0100)
Fixes memleak
Fixes: Ticket4899

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/frame.c

index c33e462..033f013 100644 (file)
@@ -357,6 +357,7 @@ FF_DISABLE_DEPRECATION_WARNINGS
     dst->qscale_table = NULL;
     dst->qstride      = 0;
     dst->qscale_type  = 0;
+    av_buffer_unref(&dst->qp_table_buf);
     if (src->qp_table_buf) {
         dst->qp_table_buf = av_buffer_ref(src->qp_table_buf);
         if (dst->qp_table_buf) {