- Fixed: file_directory tried to free it's input parameter.

SVN r4174 (trunk)
This commit is contained in:
Braden Obrzut 2013-03-07 22:16:09 +00:00
parent 88a0d22f23
commit 478bfa6cf1

View file

@ -118,7 +118,6 @@ FDirectory::FDirectory(const char * directory)
dirname = directory;
dirname.ReplaceChars('\\', '/');
if (dirname[dirname.Len()-1] != '/') dirname += '/';
free((void*)directory);
Filename = copystring(dirname);
}
@ -336,7 +335,6 @@ FileReader *FDirectoryLump::NewReader()
{
FString fullpath = Owner->Filename;
fullpath += FullName;
printf("%s\n", fullpath.GetChars());
return new FileReader(fullpath);
}
catch (CRecoverableError &)