tweak retain/relase of directory

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36323 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2013-03-10 11:09:12 +00:00
parent cd890161d2
commit 6037f25342

View file

@ -2340,13 +2340,13 @@ static inline void gsedRelease(GSEnumeratedDirectory X)
justContents: (BOOL)justContents
for: (NSFileManager*)mgr
{
//TODO: the justContents flag is currently basically useless and should be
// removed
if (nil != (self = [super init]))
{
//TODO: the justContents flag is currently basically useless and should be
// removed
_DIR *dir_pointer;
const _CHAR *localPath;
self = [super init];
_mgr = RETAIN(mgr);
#if GS_WITH_GC
_stack = NSAllocateCollectable(sizeof(GSIArray_t), NSScannedOption);
@ -2377,6 +2377,7 @@ static inline void gsedRelease(GSEnumeratedDirectory X)
NSLog(@"Failed to recurse into directory '%@' - %@", path,
[NSError _last]);
}
}
return self;
}