diff options
Diffstat (limited to 'sword2/sword2.cpp')
-rw-r--r-- | sword2/sword2.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp index a143184369..b8b81e3609 100644 --- a/sword2/sword2.cpp +++ b/sword2/sword2.cpp @@ -104,7 +104,7 @@ Sword2Engine::Sword2Engine(GameDetector *detector, OSystem *syst) g_sword2 = this; _features = detector->_game.features; _gameId = detector->_game.id; - _game_name = strdup(detector->_gameFileName.c_str()); + _gameName = strdup(detector->_gameFileName.c_str()); _bootParam = ConfMan.getInt("boot_param"); _saveSlot = ConfMan.getInt("save_slot"); _debugLevel = ConfMan.getInt("debuglevel"); @@ -122,6 +122,11 @@ Sword2Engine::Sword2Engine(GameDetector *detector, OSystem *syst) g_sound = _sound = new Sound(_mixer); } +Sword2Engine::~Sword2Engine() { + free(_gameName); + delete _sound; +} + void Sword2Engine::errorString(const char *buf1, char *buf2) { strcpy(buf2, buf1); } |