Merge remote-tracking branch 'origin/master' into windows
[scilab.git] / scilab / modules / api_scilab / src / cpp / api_stack_sparse.cpp
index d141863..f96e0f8 100644 (file)
@@ -306,10 +306,8 @@ SciErr createCommonNamedSparseMatrix(void* _pvCtx, const char* _pstName, int _iC
     }
 
 
-    wchar_t* pwstName = to_wide_string(_pstName);
     symbol::Context* ctx = symbol::Context::getInstance();
-    symbol::Symbol sym = symbol::Symbol(pwstName);
-    FREE(pwstName);
+    symbol::Symbol sym = symbol::Symbol(_pstName);
     if (ctx->isprotected(sym) == false)
     {
         ctx->put(sym, pSparse);