Commit 1d356b6a authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3714 from uqtimes:fixUIImageToMat

parents 6b371865 1944443d
...@@ -120,5 +120,4 @@ void UIImageToMat(const UIImage* image, ...@@ -120,5 +120,4 @@ void UIImageToMat(const UIImage* image,
CGContextDrawImage(contextRef, CGRectMake(0, 0, cols, rows), CGContextDrawImage(contextRef, CGRectMake(0, 0, cols, rows),
image.CGImage); image.CGImage);
CGContextRelease(contextRef); CGContextRelease(contextRef);
CGColorSpaceRelease(colorSpace);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment