iOS: fix crash from overrelease in UIImageToMat

This commit is contained in:
Thomas Weisbach 2014-10-17 17:49:14 +09:00
parent 32f978ff4b
commit 81c0537b0c

View File

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