aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-05-08 22:53:09 +0000
committerTravis Howell2006-05-08 22:53:09 +0000
commit4c6712246368148c91861fd30677a461e57e698b (patch)
tree3b7531698faa73355c5cac9e437c0d6949df23c1
parent31f83ff233bc742380fbcd4f42e1e8d4d36f4549 (diff)
downloadscummvm-rg350-4c6712246368148c91861fd30677a461e57e698b.tar.gz
scummvm-rg350-4c6712246368148c91861fd30677a461e57e698b.tar.bz2
scummvm-rg350-4c6712246368148c91861fd30677a461e57e698b.zip
Avoid closing a video file in HE games twice
svn-id: r22396
-rw-r--r--engines/scumm/he/animation_he.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/scumm/he/animation_he.cpp b/engines/scumm/he/animation_he.cpp
index c7f9455a46..f1f78d6d78 100644
--- a/engines/scumm/he/animation_he.cpp
+++ b/engines/scumm/he/animation_he.cpp
@@ -155,6 +155,9 @@ int MoviePlayer::load(const char *filename, int flags, int image) {
}
void MoviePlayer::close() {
+ if (_fd.isOpen() == false)
+ return;
+
_fd.close();
free(_frameBuffer1);
free(_frameBuffer2);