bugfix: delete sequence violated
This commit is contained in:
parent
60cc15e946
commit
b9dea98687
16
openems.cpp
16
openems.cpp
@ -54,23 +54,15 @@ openEMS::openEMS()
|
|||||||
|
|
||||||
openEMS::~openEMS()
|
openEMS::~openEMS()
|
||||||
{
|
{
|
||||||
delete FDTD_Eng;
|
Reset();
|
||||||
FDTD_Eng=NULL;
|
|
||||||
delete PA;
|
|
||||||
PA=NULL;
|
|
||||||
delete FDTD_Op;
|
|
||||||
FDTD_Op=NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void openEMS::Reset()
|
void openEMS::Reset()
|
||||||
{
|
{
|
||||||
delete FDTD_Op;
|
|
||||||
FDTD_Op=NULL;
|
|
||||||
delete FDTD_Eng;
|
|
||||||
FDTD_Eng=NULL;
|
|
||||||
if (PA) PA->DeleteAll();
|
if (PA) PA->DeleteAll();
|
||||||
delete PA;
|
delete PA; PA=0;
|
||||||
PA=NULL;
|
delete FDTD_Eng; FDTD_Eng=0;
|
||||||
|
delete FDTD_Op; FDTD_Op=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//! \brief processes a command line argument
|
//! \brief processes a command line argument
|
||||||
|
Loading…
Reference in New Issue
Block a user