mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45: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;
|
||||
DriveBoard = NULL;
|
||||
|
||||
#ifdef NET_BOARD
|
||||
NetBoard = NULL;
|
||||
#endif
|
||||
|
||||
securityPtr = 0;
|
||||
|
||||
startedThreads = false;
|
||||
|
@ -3303,6 +3307,14 @@ CModel3::~CModel3(void)
|
|||
DriveBoard = NULL;
|
||||
}
|
||||
|
||||
#ifdef NET_BOARD
|
||||
if (NetBoard != NULL)
|
||||
{
|
||||
delete NetBoard;
|
||||
NetBoard = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
Inputs = NULL;
|
||||
Outputs = NULL;
|
||||
ram = NULL;
|
||||
|
|
Loading…
Reference in a new issue