diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-12-15 02:53:13 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-12-15 02:53:13 (GMT) |
commit | f1cf5c007e9c473a2904d54314fd2761a44a3267 (patch) | |
tree | cdfc6c636aeca07dd6b45ac7cff0b9b530774284 /macosx/tkMacOSXXStubs.c | |
parent | 69043acc3be78a2702cc73cb53dd20923397e83a (diff) | |
download | tk-f1cf5c007e9c473a2904d54314fd2761a44a3267.zip tk-f1cf5c007e9c473a2904d54314fd2761a44a3267.tar.gz tk-f1cf5c007e9c473a2904d54314fd2761a44a3267.tar.bz2 |
Fix for some redraw issues on Tk-Cocoa on OS X 10.11; further refinement of memory management; thanks to Marc Culler for patches
Diffstat (limited to 'macosx/tkMacOSXXStubs.c')
-rw-r--r-- | macosx/tkMacOSXXStubs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/tkMacOSXXStubs.c b/macosx/tkMacOSXXStubs.c index 4bdd1c4..a16daa8 100644 --- a/macosx/tkMacOSXXStubs.c +++ b/macosx/tkMacOSXXStubs.c @@ -142,6 +142,7 @@ TkpOpenDisplay( static NSRect maxBounds = {{0, 0}, {0, 0}}; static char vendor[25] = ""; NSArray *cgVers; + NSAutoreleasePool *pool = [NSAutoreleasePool new]; if (gMacDisplay != NULL) { if (strcmp(gMacDisplay->display->display_name, display_name) == 0) { @@ -151,8 +152,6 @@ TkpOpenDisplay( } } - NSAutoreleasePool *pool = [NSAutoreleasePool new]; - display = (Display *) ckalloc(sizeof(Display)); screen = (Screen *) ckalloc(sizeof(Screen)); bzero(display, sizeof(Display)); |