browservar: fix crash after loading libs 39/20839/2
Clement DAVID [Tue, 12 Feb 2019 13:39:30 +0000 (14:39 +0100)]
Change-Id: Ia55c2ac5c6e2d379d286fa8a3a2ced338a1a5bde

scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp

index cca5d09..13fc390 100644 (file)
@@ -97,10 +97,8 @@ void SetBrowseVarData()
     symbol::Context* ctx = symbol::Context::getInstance();
 
     std::list<symbol::Variable*> lstVars;
-    std::list<symbol::Library*> lstLibs;
 
     iLocalVariablesUsed = ctx->getVarsToVariableBrowser(lstVars);
-    iLocalVariablesUsed += ctx->getLibsToVariableBrowser(lstLibs);
 
     char **pstAllVariableNames = new char*[iLocalVariablesUsed]();
     char **pstAllVariableVisibility = new char*[iLocalVariablesUsed]();