Commit 81c0537b authored by Thomas Weisbach's avatar Thomas Weisbach

iOS: fix crash from overrelease in UIImageToMat

parent 32f978ff
......@@ -113,5 +113,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