Cocoa plugin - fix a resource leak

The patch 916dfcb827 while fixing one problem,
introduced another - leaking CGImage.

Change-Id: I08db6ea9fa97ae3489a0bfa1f93e0d18f3671885
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
bb10
Timur Pocheptsov 2014-10-31 09:52:04 +01:00
parent 41ba4b3956
commit 85ea2434b1
1 changed files with 1 additions and 0 deletions

View File

@ -589,6 +589,7 @@ static NSString *_q_NSWindowDidChangeOcclusionStateNotification = nil;
CGContextRestoreGState(cgContext);
CGImageRelease(cleanImg);
CGImageRelease(subMask);
CGImageRelease(bsCGImage);
[self invalidateWindowShadowIfNeeded];
}