vtenc: Add missing gst_vtenc_frame_free() in error path
authorIlya Konstantinov <ilya.konstantinov@gmail.com>
Mon, 11 May 2015 14:39:19 +0000 (16:39 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 10 Jun 2015 08:26:28 +0000 (10:26 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=750668

sys/applemedia/vtenc.c

index 5c926ab3882dc85c3a653ae4893f2466cb03df0e..7267f5ddfb364bdb72df25f2aba3a71675b41f24 100644 (file)
@@ -1164,6 +1164,7 @@ gst_vtenc_encode_frame (GstVTEnc * self, GstVideoCodecFrame * frame)
           pixel_format_type = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
           break;
         default:
+          gst_vtenc_frame_free (vframe);
           goto cv_error;
       }