mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
iOS: fix crash from overrelease in UIImageToMat
- previous pull request: https://github.com/Itseez/opencv/pull/3340
This commit is contained in:
parent
d1a15097fe
commit
1944443d10
@ -120,5 +120,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