Cocoa: fix massive memory leak.
This commit is contained in:
parent
45514849e2
commit
63398ef3ba
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user