From 675a2e5382508cc5a4274599a771bfdaed9c1206 Mon Sep 17 00:00:00 2001 From: Ibrahim Ulukaya Date: Tue, 26 Mar 2019 14:07:13 -0400 Subject: [PATCH] retain fix --- mlvision/MLVisionExampleObjc/CameraViewController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/mlvision/MLVisionExampleObjc/CameraViewController.m b/mlvision/MLVisionExampleObjc/CameraViewController.m index 53e1acbac..250f40145 100644 --- a/mlvision/MLVisionExampleObjc/CameraViewController.m +++ b/mlvision/MLVisionExampleObjc/CameraViewController.m @@ -323,6 +323,7 @@ - (void)updatePreviewOverlayView { } else { _previewOverlayView.image = rotatedImage; } + CGImageRelease(cgImage); } - (NSArray *)convertedPointsFromPoints:(NSArray *)points