diff --git a/engines/director/director.cpp b/engines/director/director.cpp index 71cd3b686a9f..db218e449a1c 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;