forked from lijiext/lammps
protect PairTable dtor with copymode
This commit is contained in:
parent
aebc8ea826
commit
267f05e5ca
|
@ -46,6 +46,8 @@ PairTable::PairTable(LAMMPS *lmp) : Pair(lmp)
|
|||
|
||||
PairTable::~PairTable()
|
||||
{
|
||||
if (copymode) return;
|
||||
|
||||
for (int m = 0; m < ntables; m++) free_table(&tables[m]);
|
||||
memory->sfree(tables);
|
||||
|
||||
|
|
Loading…
Reference in New Issue