Salome HOME
Some corrections related to using UNICODE.
[modules/smesh.git] / src / MEDWrapper / MED_Factory.cxx
index dbe60c05154886b9b21fe1009e6ca96b19114cd5..3e354c131c4e8cdea033cc7b44c1b608773ccab5 100644 (file)
@@ -55,7 +55,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