mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
iOS: fix crash from overrelease in UIImageToMat
This commit is contained in:
parent
32f978ff4b
commit
81c0537b0c
@ -113,5 +113,4 @@ void UIImageToMat(const UIImage* image,
|
||||
CGContextDrawImage(contextRef, CGRectMake(0, 0, cols, rows),
|
||||
image.CGImage);
|
||||
CGContextRelease(contextRef);
|
||||
CGColorSpaceRelease(colorSpace);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user