From: prascle Date: Thu, 20 Jun 2013 12:35:08 +0000 (+0000) Subject: PR: debug memory leak (EDF 2662) X-Git-Tag: V7_2_1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c3c7cdeb9ea95693ba655957800414d990f3b0f;p=plugins%2Fghs3dplugin.git PR: debug memory leak (EDF 2662) missing delete... --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index 843a8d3..87588cb 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -1402,6 +1402,12 @@ static bool readGMFFile(const char* theFile, aSubdomainFile.close(); #endif + if (elemSearcher) + { + MESSAGE("delete elemSearcher") + delete elemSearcher; + elemSearcher = 0; + } return true; }