From: secher Date: Wed, 11 Mar 2009 15:00:54 +0000 (+0000) Subject: debug in case of no intersection between process X-Git-Tag: V5_1_main_FINAL~424 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3d4f9e6ee14db2fcd28a410816c860368dc38653;p=tools%2Fmedcoupling.git debug in case of no intersection between process --- diff --git a/src/ParaMEDMEM/ElementLocator.cxx b/src/ParaMEDMEM/ElementLocator.cxx index 5397b2a67..2069f2805 100644 --- a/src/ParaMEDMEM/ElementLocator.cxx +++ b/src/ParaMEDMEM/ElementLocator.cxx @@ -131,7 +131,8 @@ namespace ParaMEDMEM _exchangeMesh(send_mesh, distant_mesh, idistantrank, distant_ids_send, distant_ids); delete[] distant_ids_send; delete[] elem_bb; - send_mesh->decrRef(); + if(send_mesh) + send_mesh->decrRef(); } void ElementLocator::exchangeMethod(const std::string& sourceMeth, int idistantrank, std::string& targetMeth)