From 478bfa6cf1e34d5bf57a69f847066d441bd477dc Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Thu, 7 Mar 2013 22:16:09 +0000 Subject: [PATCH] - Fixed: file_directory tried to free it's input parameter. SVN r4174 (trunk) --- src/resourcefiles/file_directory.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/resourcefiles/file_directory.cpp b/src/resourcefiles/file_directory.cpp index 420b7dde3..e9076ae9b 100644 --- a/src/resourcefiles/file_directory.cpp +++ b/src/resourcefiles/file_directory.cpp @@ -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 &)