Cocoa: fix massive memory leak.

This commit is contained in:
whitequark 2016-05-18 18:20:43 +04:00
parent f3e36f593b
commit 9fc60a0c00

View File

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