avoid memory leaks
This commit is contained in:
@ -112,8 +112,10 @@ FixSpringSelf::~FixSpringSelf()
|
|||||||
atom->delete_callback(id,Atom::GROW);
|
atom->delete_callback(id,Atom::GROW);
|
||||||
atom->delete_callback(id,Atom::RESTART);
|
atom->delete_callback(id,Atom::RESTART);
|
||||||
|
|
||||||
// delete locally stored array
|
// delete locally stored arrays
|
||||||
|
|
||||||
|
delete[] kstr;
|
||||||
|
memory->destroy(kval);
|
||||||
memory->destroy(xoriginal);
|
memory->destroy(xoriginal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user