Commit 1944443d authored by UQ Times's avatar UQ Times

iOS: fix crash from overrelease in UIImageToMat

- previous pull request: https://github.com/Itseez/opencv/pull/3340
parent d1a15097
......@@ -120,5 +120,4 @@ void UIImageToMat(const UIImage* image,
CGContextDrawImage(contextRef, CGRectMake(0, 0, cols, rows),
image.CGImage);
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