diff options
author | Gregory Montoir | 2008-11-15 02:41:37 +0000 |
---|---|---|
committer | Gregory Montoir | 2008-11-15 02:41:37 +0000 |
commit | 2babdcb41da5e4997c7ed99c55d706c40c51c15a (patch) | |
tree | d5ca757e65dbdc394353f3427d8c5399f8f3a540 | |
parent | 8f230d735889bd5d52f517f657f8ffa6ee222394 (diff) | |
download | scummvm-rg350-2babdcb41da5e4997c7ed99c55d706c40c51c15a.tar.gz scummvm-rg350-2babdcb41da5e4997c7ed99c55d706c40c51c15a.tar.bz2 scummvm-rg350-2babdcb41da5e4997c7ed99c55d706c40c51c15a.zip |
added missing File destructor call if file can't be read
svn-id: r35070
-rw-r--r-- | graphics/dxa_player.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/dxa_player.cpp b/graphics/dxa_player.cpp index fdfcb8992f..21148be1d1 100644 --- a/graphics/dxa_player.cpp +++ b/graphics/dxa_player.cpp @@ -62,6 +62,7 @@ DXAPlayer::DXAPlayer() { } DXAPlayer::~DXAPlayer() { + closeFile(); } int DXAPlayer::getWidth() { @@ -94,6 +95,7 @@ bool DXAPlayer::loadFile(const char *filename) { Common::File *file = new Common::File(); if (!file->open(filename)) { + delete file; return 0; } |