mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
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:
parent
cd890161d2
commit
6037f25342
1 changed files with 28 additions and 27 deletions
|
@ -2339,14 +2339,14 @@ static inline void gsedRelease(GSEnumeratedDirectory X)
|
||||||
followSymlinks: (BOOL)follow
|
followSymlinks: (BOOL)follow
|
||||||
justContents: (BOOL)justContents
|
justContents: (BOOL)justContents
|
||||||
for: (NSFileManager*)mgr
|
for: (NSFileManager*)mgr
|
||||||
|
{
|
||||||
|
if (nil != (self = [super init]))
|
||||||
{
|
{
|
||||||
//TODO: the justContents flag is currently basically useless and should be
|
//TODO: the justContents flag is currently basically useless and should be
|
||||||
// removed
|
// removed
|
||||||
_DIR *dir_pointer;
|
_DIR *dir_pointer;
|
||||||
const _CHAR *localPath;
|
const _CHAR *localPath;
|
||||||
|
|
||||||
self = [super init];
|
|
||||||
|
|
||||||
_mgr = RETAIN(mgr);
|
_mgr = RETAIN(mgr);
|
||||||
#if GS_WITH_GC
|
#if GS_WITH_GC
|
||||||
_stack = NSAllocateCollectable(sizeof(GSIArray_t), NSScannedOption);
|
_stack = NSAllocateCollectable(sizeof(GSIArray_t), NSScannedOption);
|
||||||
|
@ -2377,6 +2377,7 @@ static inline void gsedRelease(GSEnumeratedDirectory X)
|
||||||
NSLog(@"Failed to recurse into directory '%@' - %@", path,
|
NSLog(@"Failed to recurse into directory '%@' - %@", path,
|
||||||
[NSError _last]);
|
[NSError _last]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue