mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
Wrapping drawing code in own autorelease pool
svn path=/trunk/netsurf/; revision=11414
This commit is contained in:
parent
5932151359
commit
ae37542582
@ -100,9 +100,10 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view )
|
|||||||
|
|
||||||
- (void)drawRect:(NSRect)dirtyRect;
|
- (void)drawRect:(NSRect)dirtyRect;
|
||||||
{
|
{
|
||||||
|
|
||||||
if (NULL == browser->current_content) return;
|
if (NULL == browser->current_content) return;
|
||||||
|
|
||||||
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
cocoa_set_font_scale_factor( browser->scale );
|
cocoa_set_font_scale_factor( browser->scale );
|
||||||
|
|
||||||
NSRect frame = [self bounds];
|
NSRect frame = [self bounds];
|
||||||
@ -133,6 +134,7 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view )
|
|||||||
[NSBezierPath fillRect: caretRect];
|
[NSBezierPath fillRect: caretRect];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[pool release];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) isFlipped;
|
- (BOOL) isFlipped;
|
||||||
|
Loading…
Reference in New Issue
Block a user