iOS: fix crash from overrelease in UIImageToMat
This commit is contained in:
@@ -113,5 +113,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);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user