aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorNicola Mettifogo2010-02-08 16:12:22 +0000
committerNicola Mettifogo2010-02-08 16:12:22 +0000
commitc453f214e6e356524aff2466a8221675b7ac33be (patch)
tree91406549b9b75e06756952a7b467ac302a301b1d /engines/drascula
parent7147f8577e08bcb037cba390dbef3e90163fb96f (diff)
downloadscummvm-rg350-c453f214e6e356524aff2466a8221675b7ac33be.tar.gz
scummvm-rg350-c453f214e6e356524aff2466a8221675b7ac33be.tar.bz2
scummvm-rg350-c453f214e6e356524aff2466a8221675b7ac33be.zip
Close the FLI file only from the routine that opened it.
svn-id: r47990
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/graphics.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/drascula/graphics.cpp b/engines/drascula/graphics.cpp
index 719438d6fe..79d91bccd3 100644
--- a/engines/drascula/graphics.cpp
+++ b/engines/drascula/graphics.cpp
@@ -486,8 +486,8 @@ void DrasculaEngine::playFLI(const char *filefli, int vel) {
if (_useMemForArj)
free(memPtr);
- else
- _arj.close();
+
+ _arj.close();
}
int DrasculaEngine::playFrameSSN() {
@@ -596,7 +596,6 @@ byte *DrasculaEngine::TryInMem() {
return NULL;
_arj.read(memPtr, length);
_useMemForArj = true;
- _arj.close();
return memPtr;
}