diff options
-rw-r--r-- | backends/saves/savefile.cpp | 4 | ||||
-rw-r--r-- | common/savefile.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/backends/saves/savefile.cpp b/backends/saves/savefile.cpp index 21f53b8de2..059b7dba8d 100644 --- a/backends/saves/savefile.cpp +++ b/backends/saves/savefile.cpp @@ -31,7 +31,9 @@ namespace Common { OutSaveFile::OutSaveFile(WriteStream *w): _wrapped(w) {} -OutSaveFile::~OutSaveFile() {} +OutSaveFile::~OutSaveFile() { + delete _wrapped; +} bool OutSaveFile::err() const { return _wrapped->err(); } diff --git a/common/savefile.h b/common/savefile.h index eb7e6f946e..80cd03e068 100644 --- a/common/savefile.h +++ b/common/savefile.h @@ -28,7 +28,6 @@ #include "common/stream.h" #include "common/str-array.h" #include "common/error.h" -#include "common/ptr.h" namespace Common { @@ -47,7 +46,7 @@ typedef SeekableReadStream InSaveFile; */ class OutSaveFile: public WriteStream { protected: - ScopedPtr<WriteStream> _wrapped; + WriteStream *_wrapped; public: OutSaveFile(WriteStream *w); |