mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-06 16:41:44 +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 = directory;
|
||||||
dirname.ReplaceChars('\\', '/');
|
dirname.ReplaceChars('\\', '/');
|
||||||
if (dirname[dirname.Len()-1] != '/') dirname += '/';
|
if (dirname[dirname.Len()-1] != '/') dirname += '/';
|
||||||
free((void*)directory);
|
|
||||||
Filename = copystring(dirname);
|
Filename = copystring(dirname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -336,7 +335,6 @@ FileReader *FDirectoryLump::NewReader()
|
||||||
{
|
{
|
||||||
FString fullpath = Owner->Filename;
|
FString fullpath = Owner->Filename;
|
||||||
fullpath += FullName;
|
fullpath += FullName;
|
||||||
printf("%s\n", fullpath.GetChars());
|
|
||||||
return new FileReader(fullpath);
|
return new FileReader(fullpath);
|
||||||
}
|
}
|
||||||
catch (CRecoverableError &)
|
catch (CRecoverableError &)
|
||||||
|
|
Loading…
Reference in a new issue