From 2f13365cf5f3ef8cbb3cf1302d960c6f1062d9f0 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 16 Jan 2017 17:08:00 -0500 Subject: [PATCH] avoid spurious error message, when no storage fix is active/used --- src/compute_chunk_atom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compute_chunk_atom.cpp b/src/compute_chunk_atom.cpp index fafcf7aee3..925c5fbf81 100644 --- a/src/compute_chunk_atom.cpp +++ b/src/compute_chunk_atom.cpp @@ -493,7 +493,7 @@ ComputeChunkAtom::~ComputeChunkAtom() { // check nfix in case all fixes have already been deleted - if (modify->nfix) modify->delete_fix(id_fix); + if (id_fix && modify->nfix) modify->delete_fix(id_fix); delete [] id_fix; memory->destroy(chunk);