From 3c3c7cdeb9ea95693ba655957800414d990f3b0f Mon Sep 17 00:00:00 2001 From: prascle Date: Thu, 20 Jun 2013 12:35:08 +0000 Subject: [PATCH] PR: debug memory leak (EDF 2662) missing delete... --- src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.39.2