X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDWrapper%2FMED_Factory.cxx;h=3e354c131c4e8cdea033cc7b44c1b608773ccab5;hb=refs%2Fheads%2Frnv%2Funicode;hp=dbe60c05154886b9b21fe1009e6ca96b19114cd5;hpb=15fdc1b6fc53ec90f8f3abf5f1dafdb469217c17;p=modules%2Fsmesh.git diff --git a/src/MEDWrapper/MED_Factory.cxx b/src/MEDWrapper/MED_Factory.cxx index dbe60c051..3e354c131 100644 --- a/src/MEDWrapper/MED_Factory.cxx +++ b/src/MEDWrapper/MED_Factory.cxx @@ -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