mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 12:22:51 +00:00
HDB: Fix allocation problem with g_hdb
This commit is contained in:
parent
ccce71fabb
commit
538ead52bb
@ -36,6 +36,8 @@
|
||||
|
||||
namespace HDB {
|
||||
|
||||
HDBGame* g_hdb;
|
||||
|
||||
HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) {
|
||||
_console = nullptr;
|
||||
_systemInit = false;
|
||||
@ -49,7 +51,6 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst
|
||||
|
||||
HDBGame::~HDBGame() {
|
||||
delete _console;
|
||||
delete g_hdb;
|
||||
delete fileMan;
|
||||
delete lua;
|
||||
DebugMan.clearAllDebugChannels();
|
||||
|
@ -103,7 +103,7 @@ private:
|
||||
|
||||
};
|
||||
|
||||
static HDBGame *g_hdb;
|
||||
extern HDBGame *g_hdb;
|
||||
|
||||
}// End of namespace HDB
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user