Memory allocated but not released.

This commit is contained in:
CapitaineSheridan 2022-12-23 11:29:30 +01:00 committed by trzy
parent 69a458ecf7
commit 7e025e64a2

View file

@ -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;