diff options
author | Strangerke | 2015-11-30 01:17:05 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:33:44 +0100 |
commit | d0c6c730365764668567f19e07b6971974c649fb (patch) | |
tree | 8217bb58089812add257be327a543c4053de5e24 /engines/lab/lab.cpp | |
parent | 05f54b7fe0a0fbdfc731404b77b149f10ad5679b (diff) | |
download | scummvm-rg350-d0c6c730365764668567f19e07b6971974c649fb.tar.gz scummvm-rg350-d0c6c730365764668567f19e07b6971974c649fb.tar.bz2 scummvm-rg350-d0c6c730365764668567f19e07b6971974c649fb.zip |
LAB: Rename _music, delete it in engine destructor
Diffstat (limited to 'engines/lab/lab.cpp')
-rw-r--r-- | engines/lab/lab.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/lab/lab.cpp b/engines/lab/lab.cpp index 745bb74f94..9ad51fd4a7 100644 --- a/engines/lab/lab.cpp +++ b/engines/lab/lab.cpp @@ -76,7 +76,7 @@ LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc) _event = nullptr; _resource = nullptr; - g_music = nullptr; + _music = nullptr; //const Common::FSNode gameDataDir(ConfMan.get("path")); //SearchMan.addSubDirectoryMatching(gameDataDir, "game"); @@ -91,6 +91,7 @@ LabEngine::~LabEngine() { delete _event; delete _resource; + delete _music; } Common::Error LabEngine::run() { @@ -101,7 +102,7 @@ Common::Error LabEngine::run() { _event = new EventManager(this); _resource = new Resource(this); - g_music = new Music(this); + _music = new Music(this); if (getPlatform() == Common::kPlatformWindows) { // Check if this is the Wyrmkeep trial |