Merge pull request #40 from lammps/master

rebase
This commit is contained in:
Jacob Gissinger 2019-01-12 23:28:09 -07:00 committed by GitHub
commit 4ec21e1b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -445,10 +445,10 @@ FixBondReact::~FixBondReact()
delete [] exclude_group;
// check nfix in case all fixes have already been deleted
if (id_fix1 == NULL && modify->nfix) modify->delete_fix(id_fix1);
if (id_fix1 && modify->nfix) modify->delete_fix(id_fix1);
delete [] id_fix1;
if (id_fix3 == NULL && modify->nfix) modify->delete_fix(id_fix3);
if (id_fix3 && modify->nfix) modify->delete_fix(id_fix3);
delete [] id_fix3;
}