summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-01-20 11:38:14 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-01-20 11:38:14 +0000
commitae37542582765d9643865854336ab6e94bc2f24b (patch)
treef6533abb1e09942a65a9080efc28670c6cd175bd
parent59321513593af496f22439a3305bb95d31330091 (diff)
downloadnetsurf-ae37542582765d9643865854336ab6e94bc2f24b.tar.gz
netsurf-ae37542582765d9643865854336ab6e94bc2f24b.tar.bz2
Wrapping drawing code in own autorelease pool
svn path=/trunk/netsurf/; revision=11414
-rw-r--r--cocoa/BrowserView.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/cocoa/BrowserView.m b/cocoa/BrowserView.m
index 23a4c562c..e20c053a6 100644
--- a/cocoa/BrowserView.m
+++ b/cocoa/BrowserView.m
@@ -100,9 +100,10 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view )
- (void)drawRect:(NSRect)dirtyRect;
{
-
if (NULL == browser->current_content) return;
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
cocoa_set_font_scale_factor( browser->scale );
NSRect frame = [self bounds];
@@ -133,6 +134,7 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view )
[NSBezierPath fillRect: caretRect];
}
+ [pool release];
}
- (BOOL) isFlipped;