diff options
author | Jonathan Gray | 2003-05-01 12:36:36 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-05-01 12:36:36 +0000 |
commit | a2da94d580884712b2cf49f3a368842173c93bbe (patch) | |
tree | 99fce69075042b661b045cbbee5eb07fca690303 | |
parent | 09abe32284e38ffc35c56c5f15d8c827abb31877 (diff) | |
download | scummvm-rg350-a2da94d580884712b2cf49f3a368842173c93bbe.tar.gz scummvm-rg350-a2da94d580884712b2cf49f3a368842173c93bbe.tar.bz2 scummvm-rg350-a2da94d580884712b2cf49f3a368842173c93bbe.zip |
fix leak
svn-id: r7244
-rw-r--r-- | common/file.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp index 35307d5618..ff666e820a 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -133,6 +133,8 @@ bool File::open(const char *filename, const char *directory, int mode, byte encb _encbyte = encbyte; int len = strlen(filename); + if (_name != 0) + delete [] _name; _name = new char[len+1]; memcpy(_name, filename, len+1); |