From cbcec5adb9cb2274f3c4e2f3a8f4926b2e9689e8 Mon Sep 17 00:00:00 2001 From: Jeff Sickel Date: Wed, 12 Jan 2011 00:54:22 -0500 Subject: devdraw: fix flashing during window drag R=rsc CC=codebot http://codereview.appspot.com/3922043 --- src/cmd/devdraw/osx-srv.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cmd/devdraw/osx-srv.m') diff --git a/src/cmd/devdraw/osx-srv.m b/src/cmd/devdraw/osx-srv.m index 722378ee..b7828af2 100644 --- a/src/cmd/devdraw/osx-srv.m +++ b/src/cmd/devdraw/osx-srv.m @@ -121,7 +121,7 @@ main(int argc, char **argv) { NSAutoreleasePool *pool = nil; NSApplication *application = nil; - + DevdrawDelegate *app = nil; /* * Move the protocol off stdin/stdout so that * any inadvertent prints don't screw things up. @@ -152,9 +152,11 @@ main(int argc, char **argv) pool = [[NSAutoreleasePool alloc] init]; application = [NSApplication sharedApplication]; - [application setDelegate:[[DevdrawDelegate alloc] init]]; + app = [[DevdrawDelegate alloc] init]; + [application setDelegate:app]; [application run]; [application setDelegate:nil]; + [app release]; [pool release]; return 0; } -- cgit v1.2.3