summaryrefslogtreecommitdiff
path: root/sys/applemedia/vtenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/applemedia/vtenc.c')
-rw-r--r--sys/applemedia/vtenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c
index 5c926ab38..7267f5ddf 100644
--- a/sys/applemedia/vtenc.c
+++ b/sys/applemedia/vtenc.c
@@ -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;
}