From: Sebastian Dröge Date: Mon, 12 Nov 2012 12:01:23 +0000 (+0100) Subject: vp8enc: Don't leak GstVideoCodecFrames that cause the creation of invisible frames X-Git-Tag: 1.19.3~509^2~6353 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ad88d265c71f41421f4585ddcc055bc2cff38e9;p=platform%2Fupstream%2Fgstreamer.git vp8enc: Don't leak GstVideoCodecFrames that cause the creation of invisible frames Fixes bug #682714. --- diff --git a/ext/vpx/gstvp8enc.c b/ext/vpx/gstvp8enc.c index 265e6c35a5..e1c30306c0 100644 --- a/ext/vpx/gstvp8enc.c +++ b/ext/vpx/gstvp8enc.c @@ -1807,6 +1807,7 @@ gst_vp8_enc_process (GstVP8Enc * encoder) if (invisible) { user_data->invisible = g_list_append (user_data->invisible, buffer); + gst_video_codec_frame_unref (frame); } else { frame->output_buffer = buffer; g_mutex_unlock (&encoder->encoder_lock);