mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 13:55:38 +00:00
Memory allocated but not released.
This commit is contained in:
parent
69a458ecf7
commit
7e025e64a2
|
@ -3224,6 +3224,10 @@ CModel3::CModel3(Util::Config::Node &config)
|
||||||
DSB = NULL;
|
DSB = NULL;
|
||||||
DriveBoard = NULL;
|
DriveBoard = NULL;
|
||||||
|
|
||||||
|
#ifdef NET_BOARD
|
||||||
|
NetBoard = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
securityPtr = 0;
|
securityPtr = 0;
|
||||||
|
|
||||||
startedThreads = false;
|
startedThreads = false;
|
||||||
|
@ -3303,6 +3307,14 @@ CModel3::~CModel3(void)
|
||||||
DriveBoard = NULL;
|
DriveBoard = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef NET_BOARD
|
||||||
|
if (NetBoard != NULL)
|
||||||
|
{
|
||||||
|
delete NetBoard;
|
||||||
|
NetBoard = NULL;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Inputs = NULL;
|
Inputs = NULL;
|
||||||
Outputs = NULL;
|
Outputs = NULL;
|
||||||
ram = NULL;
|
ram = NULL;
|
||||||
|
|
Loading…
Reference in a new issue