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