Salome HOME
Some corrections related to using UNICODE.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_HypothesesUtils.cxx
index 255d2f5751554fa993c6a6e571e4c38dd1f64566..42847411ba21f6d29df4542e7065076733b70973 100644 (file)
@@ -534,6 +534,9 @@ namespace SMESH
         char* path = baPath.data();
 #endif
         LibHandle libHandle = LoadLib( path );
+#if defined(WIN32) && defined(UNICODE)
+      delete path;
+#endif
         if (!libHandle) {
           // report any error, if occurred
           {