diff options
author | Max Horn | 2003-09-17 13:28:48 +0000 |
---|---|---|
committer | Max Horn | 2003-09-17 13:28:48 +0000 |
commit | 1d60dc552dc83fa37c7618b6d85770d97fe47744 (patch) | |
tree | aae5e2ba498439da17b0eaa45a2729166c9c3fc0 | |
parent | d6c2957d5cc17c121f540938697e4a6ea6e96073 (diff) | |
download | scummvm-rg350-1d60dc552dc83fa37c7618b6d85770d97fe47744.tar.gz scummvm-rg350-1d60dc552dc83fa37c7618b6d85770d97fe47744.tar.bz2 scummvm-rg350-1d60dc552dc83fa37c7618b6d85770d97fe47744.zip |
delete name only after closing the file
svn-id: r10270
-rw-r--r-- | common/file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/file.cpp b/common/file.cpp index e6378f7f40..81fd148e98 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -119,8 +119,8 @@ File::File() { } File::~File() { - delete [] _name; close(); + delete [] _name; } bool File::open(const char *filename, const char *directory, int mode, byte encbyte) { |