Salome HOME
#16578 EDF - Scibian - ViscousLayer / SIGSEGV
[modules/smesh.git] / src / MEDWrapper / MED_Factory.cxx
index 37c8d4f130dcc5f262293da129d7392dcce7a0a0..91a6244db99c1858bee060308863b725389d030b 100644 (file)
@@ -99,7 +99,11 @@ namespace MED
 #else
        cosnt char* path = xmlPath.c_str();
 #endif
-    return (GetFileAttributes(path) != INVALID_FILE_ATTRIBUTES);
+       bool res = (GetFileAttributes(path) != INVALID_FILE_ATTRIBUTES);
+#ifdef UNICODE
+       delete path;
+#endif
+       return res;
 #else
     return (access(fileName.c_str(), F_OK) == 0);
 #endif