Wrapping drawing code in own autorelease pool

svn path=/trunk/netsurf/; revision=11414
This commit is contained in:
Sven Weidauer 2011-01-20 11:38:14 +00:00
parent 5932151359
commit ae37542582

View File

@ -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;