Remove autoreleasepool in drawRect, not necessary
This commit is contained in:
committed by
Alexander Larsson
parent
f12a992be2
commit
7ab3435a58
@ -67,8 +67,6 @@
|
|||||||
if (NSEqualRects (rect, NSZeroRect))
|
if (NSEqualRects (rect, NSZeroRect))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GDK_QUARTZ_ALLOC_POOL;
|
|
||||||
|
|
||||||
[self getRectsBeingDrawn:&drawn_rects count:&count];
|
[self getRectsBeingDrawn:&drawn_rects count:&count];
|
||||||
|
|
||||||
region = gdk_region_new ();
|
region = gdk_region_new ();
|
||||||
@ -115,8 +113,6 @@
|
|||||||
[[self window] invalidateShadow];
|
[[self window] invalidateShadow];
|
||||||
needsInvalidateShadow = NO;
|
needsInvalidateShadow = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
GDK_QUARTZ_RELEASE_POOL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void)setNeedsInvalidateShadow:(BOOL)invalidate
|
-(void)setNeedsInvalidateShadow:(BOOL)invalidate
|
||||||
|
|||||||
Reference in New Issue
Block a user