From ee5b1fe043e75510838607fe2b7050861ba5e53b Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Mon, 5 Dec 2016 09:08:45 +0900 Subject: [PATCH] Hadrons: freeing object message fix --- extras/Hadrons/Environment.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/Hadrons/Environment.cc b/extras/Hadrons/Environment.cc index 03f33366..67880cd3 100644 --- a/extras/Hadrons/Environment.cc +++ b/extras/Hadrons/Environment.cc @@ -640,7 +640,7 @@ bool Environment::freeObject(const unsigned int address) { if (!hasOwners(address)) { - if (!isDryRun()) + if (!isDryRun() and object_[address].isRegistered) { LOG(Message) << "Destroying object '" << object_[address].name << "'" << std::endl;