iOS: fix crash from overrelease in UIImageToMat

pull/3340/head
Thomas Weisbach 10 years ago
parent 32f978ff4b
commit 81c0537b0c
  1. 1
      modules/highgui/src/ios_conversions.mm

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

Loading…
Cancel
Save