leak fixing

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32035 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-10 12:11:03 +00:00
parent 0f24da3c66
commit be3a8ecc45
10 changed files with 36 additions and 18 deletions

View file

@ -874,7 +874,7 @@ static int verbose = 0;
NSString *filename;
e = [HTMLDirectoryEnumerator alloc];
e = [e initWithBasePath: pathOnDisk];
e = [[e initWithBasePath: pathOnDisk] autorelease];
[e setReturnsAbsolutePaths: YES];
while ((filename = [e nextObject]) != nil)
@ -1056,7 +1056,7 @@ build_relocation_table_for_directory (NSString *dir)
IF_NO_GC ([relocationTable autorelease];)
e = [HTMLDirectoryEnumerator alloc];
e = [e initWithBasePath: dir];
e = [[e initWithBasePath: dir] autorelease];
/* The relocation table for a directory is relative to the
directory top, so that the whole directory can be moved
around without having to regenerate the .htmlink file. */