diff options
Diffstat (limited to 'Source/SPWindowControllerDelegate.m')
-rw-r--r-- | Source/SPWindowControllerDelegate.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPWindowControllerDelegate.m b/Source/SPWindowControllerDelegate.m index 220930de..31876263 100644 --- a/Source/SPWindowControllerDelegate.m +++ b/Source/SPWindowControllerDelegate.m @@ -368,6 +368,7 @@ CGImageRef windowImage = CGWindowListCreateImage(CGRectNull, kCGWindowListOptionIncludingWindow, (unsigned int)[[self window] windowNumber], kCGWindowImageBoundsIgnoreFraming); NSBitmapImageRep *viewRep = [[NSBitmapImageRep alloc] initWithCGImage:windowImage]; [viewImage addRepresentation:viewRep]; + [viewRep release]; // Calculate the titlebar+toolbar height CGFloat contentViewOffsetY = [[self window] frame].size.height - [[[self window] contentView] frame].size.height; |