Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54c79c9

Browse files
committed
Fix macosx segfault
1 parent 68652b1 commit 54c79c9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/_macosx.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,7 @@ static CGFloat _get_device_scale(CGContextRef cr)
753753
Window* window = self->window;
754754
if(window)
755755
{
756-
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
757756
[window close];
758-
[pool release];
759757
self->window = NULL;
760758
}
761759
Py_RETURN_NONE;

0 commit comments

Comments
 (0)