Cocoa: fix massive memory leak.

This commit is contained in:
whitequark 2016-05-18 18:20:43 +04:00
parent 45514849e2
commit 63398ef3ba

View File

@ -221,6 +221,9 @@ CONVERT(Rect)
CGContextDrawImage((CGContextRef) [[NSGraphicsContext currentContext] graphicsPort], CGContextDrawImage((CGContextRef) [[NSGraphicsContext currentContext] graphicsPort],
[self bounds], image); [self bounds], image);
CGImageRelease(image);
CGDataProviderRelease(provider);
} }
- (void)drawGL { - (void)drawGL {