Merge remote-tracking branch 'origin/master' into windows
[scilab.git] / scilab / modules / scicos / sci_gateway / cpp / sci_scicosDiagramToScilab.cpp
index 8019225..316bb72 100644 (file)
@@ -69,9 +69,8 @@ types::Function::ReturnValue sci_scicosDiagramToScilab(types::typed_list &in, in
         out.resize(_iRetCount);
         for (int i = 0; i < _iRetCount; i++)
         {
-            char* f = wide_string_to_UTF8(files->get(i));
+            char* f = files->get(i);
             out[i] = importFile(f);
-            FREE(f);
             if (out[i] == nullptr)
             {
                 return types::Function::Error;
@@ -91,9 +90,8 @@ types::Function::ReturnValue sci_scicosDiagramToScilab(types::typed_list &in, in
         }
         for (int i = 0; i < _iRetCount; i++)
         {
-            char* f = wide_string_to_UTF8(files->get(i));
+            char* f = files->get(i);
             bool success = exportFile(1 + i, f, in[1 + i]);
-            FREE(f);
             if (!success)
             {
                 return types::Function::Error;