iOS: fix crash from overrelease in UIImageToMat

- previous pull request: https://github.com/Itseez/opencv/pull/3340
This commit is contained in:
UQ Times 2015-02-18 13:30:08 +09:00
parent d1a15097fe
commit 1944443d10

View File

@ -120,5 +120,4 @@ void UIImageToMat(const UIImage* image,
CGContextDrawImage(contextRef, CGRectMake(0, 0, cols, rows),
image.CGImage);
CGContextRelease(contextRef);
CGColorSpaceRelease(colorSpace);
}