[MOVED FROM BAD 118/134] vp8enc: fix memory leak
authorOleksij Rempel <bug-track@fisher-privat.net>
Sat, 21 Jul 2012 17:59:21 +0000 (19:59 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 16 Sep 2012 13:31:10 +0000 (15:31 +0200)
unref frame. i hope it is correct place to do it.

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
ext/vp8/gstvp8enc.c

index 2eae696..85223cb 100644 (file)
@@ -1119,7 +1119,7 @@ gst_vp8_enc_handle_frame (GstVideoEncoder * video_encoder,
     gst_video_codec_frame_set_user_data (frame, NULL, NULL);
     return FALSE;
   }
-
+  gst_video_codec_frame_unref (frame);
   return gst_vp8_enc_process (encoder);
 }