mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
fix autoreleasing the file watcher queue
This commit is contained in:
parent
e79005e150
commit
5a04552631
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue