Fixed a memory leak when re-initializing a CVodesIntegrator
This commit is contained in:
parent
391690de4e
commit
f04ac23be9
1 changed files with 1 additions and 0 deletions
|
|
@ -389,6 +389,7 @@ void CVodesIntegrator::initialize(double t0, FuncEval& func)
|
|||
}
|
||||
|
||||
// pass a pointer to func in m_data
|
||||
delete m_fdata;
|
||||
m_fdata = new FuncData(&func, func.nparams());
|
||||
|
||||
//m_data = (void*)&func;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue