diff options
Diffstat (limited to 'engines/cine/cine.cpp')
-rw-r--r-- | engines/cine/cine.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/cine/cine.cpp b/engines/cine/cine.cpp index 375258a666..5f2ded13a0 100644 --- a/engines/cine/cine.cpp +++ b/engines/cine/cine.cpp @@ -71,6 +71,12 @@ CineEngine::~CineEngine() { freePoldatDat(); freeErrmessDat(); } + + if (palFileHandleP); + delete palFileHandleP; + + if (partFileHandleP); + delete partFileHandleP; } int CineEngine::init() { @@ -79,6 +85,9 @@ int CineEngine::init() { GUIErrorMessage("No valid games were found in the specified directory."); return -1; } + + palFileHandleP = new Common::File(); + partFileHandleP = new Common::File(); // Initialize backend _system->beginGFXTransaction(); |