# HG changeset patch # User Jens Alfke # Date 1242833644 25200 # Node ID 222393534845c890b5f99c08ea750816edb0d479 # Parent 2068331949eed2079c24cc34bb3ac4cf3df6853d Retain/release MYDirectoryWatcher's _standardizedPath, for non-GC compatibility. diff -r 2068331949ee -r 222393534845 MYDirectoryWatcher.m --- a/MYDirectoryWatcher.m Thu May 14 20:44:32 2009 -0700 +++ b/MYDirectoryWatcher.m Wed May 20 08:34:04 2009 -0700 @@ -35,7 +35,7 @@ self = [super init]; if (self != nil) { _path = path.copy; - _standardizedPath = [_path stringByStandardizingPath]; + _standardizedPath = [[_path stringByStandardizingPath] copy]; _target = target; _action = action; _latency = 5.0; @@ -48,6 +48,7 @@ { [self stop]; [_path release]; + [_standardizedPath release]; [super dealloc]; }