vp8enc: fix memory leak

unref frame. i hope it is correct place to do it.

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
This commit is contained in:
Oleksij Rempel 2012-07-21 19:59:21 +02:00 committed by Sebastian Dröge
parent 305db3ef56
commit c03cc692ef

View file

@ -1098,7 +1098,7 @@ gst_vp8_enc_handle_frame (GstVideoEncoder * video_encoder,
gst_video_codec_frame_set_user_data (frame, NULL, NULL); gst_video_codec_frame_set_user_data (frame, NULL, NULL);
return FALSE; return FALSE;
} }
gst_video_codec_frame_unref (frame);
return gst_vp8_enc_process (encoder); return gst_vp8_enc_process (encoder);
} }