Cocoa: fix massive memory leak.
This commit is contained in:
parent
f3e36f593b
commit
9fc60a0c00
|
@ -221,6 +221,9 @@ CONVERT(Rect)
|
|||
|
||||
CGContextDrawImage((CGContextRef) [[NSGraphicsContext currentContext] graphicsPort],
|
||||
[self bounds], image);
|
||||
|
||||
CGImageRelease(image);
|
||||
CGDataProviderRelease(provider);
|
||||
}
|
||||
|
||||
- (void)drawGL {
|
||||
|
|
Loading…
Reference in New Issue
Block a user