From 4b9b1f3c2dfdba8e6705195832c69b2952d47f9c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 2 Jul 2016 20:52:38 +0200 Subject: DIRECTOR: Fix crash on deinitialization --- engines/director/director.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'engines/director/director.cpp') diff --git a/engines/director/director.cpp b/engines/director/director.cpp index 71cd3b686a..db218e449a 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -53,17 +53,17 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam // Setup mixer syncSoundSettings(); - _sharedCasts = new Common::HashMap(); - _sharedDIB = new Common::HashMap(); - _sharedBMP = new Common::HashMap(); - _sharedSTXT = new Common::HashMap(); - _sharedSound = new Common::HashMap(); + _sharedCasts = new Common::HashMap; + _sharedDIB = new Common::HashMap; + _sharedBMP = new Common::HashMap; + _sharedSTXT = new Common::HashMap; + _sharedSound = new Common::HashMap; _mainArchive = 0; _macBinary = 0; //FIXME _sharedMMM = "SHARDCST.MMM"; - _movies = new Common::HashMap(); + _movies = new Common::HashMap; const Common::FSNode gameDataDir(ConfMan.get("path")); SearchMan.addSubDirectoryMatching(gameDataDir, "data"); @@ -71,12 +71,12 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam } DirectorEngine::~DirectorEngine() { - delete[] _sharedCasts; - delete[] _sharedSound; - delete[] _sharedBMP; - delete[] _sharedSTXT; - delete[] _sharedDIB; - delete[] _movies; + delete _sharedCasts; + delete _sharedSound; + delete _sharedBMP; + delete _sharedSTXT; + delete _sharedDIB; + delete _movies; delete _mainArchive; delete _macBinary; -- cgit v1.2.3