mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fixed: file_directory tried to free it's input parameter.
SVN r4174 (trunk)
This commit is contained in:
parent
88a0d22f23
commit
478bfa6cf1
1 changed files with 0 additions and 2 deletions
|
@ -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 &)
|
||||
|
|
Loading…
Reference in a new issue