From 5a045526319b7cbb71e00c0eb5f9113503ff9d62 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 8 Feb 2013 13:18:41 +0000 Subject: [PATCH] fix autoreleasing the file watcher queue --- macosx/Controller.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 091a43377..f77627374 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -374,7 +374,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy fInfoController = [[InfoWindowController alloc] init]; //needs to be done before init-ing the prefs controller - fFileWatcherQueue = [[[VDKQueue alloc] init] autorelease]; + fFileWatcherQueue = [[VDKQueue alloc] init]; [fFileWatcherQueue setDelegate: self]; fPrefsController = [[PrefsController alloc] initWithHandle: fLib]; @@ -2956,7 +2956,9 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy -(void) VDKQueue: (VDKQueue *) queue receivedNotification: (NSString*) notification forPath: (NSString*) fpath { - NSParameterAssert([notification isEqualToString:VDKQueueWriteNotification]);NSLog(@"%@",notification); + #warning remove log + NSLog(@"%@",notification); + NSParameterAssert([notification isEqualToString:VDKQueueWriteNotification]); if (![fDefaults boolForKey: @"AutoImport"] || ![fDefaults stringForKey: @"AutoImportDirectory"]) return;