Skip to content

Commit

Permalink
Re #4219 AddPythonReference still makes MantidPlot crash randomly
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Jan 6, 2012
1 parent 95720d7 commit dd654b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Code/Mantid/MantidPlot/src/PythonScript.cpp
Expand Up @@ -719,6 +719,7 @@ void PythonScript::clearADSHandle()
*/
void PythonScript::addPythonReference(const std::string& wsName,const Mantid::API::Workspace_sptr ws)
{
return;
UNUSED_ARG(ws);

// Compile a code object
Expand Down Expand Up @@ -753,6 +754,7 @@ void PythonScript::addPythonReference(const std::string& wsName,const Mantid::AP
*/
void PythonScript::deletePythonReference(const std::string& wsName)
{
return;
const size_t length = wsName.length() + 4;
char * code = new char[length + 1];
sprintf(code, "del %s", wsName.c_str());
Expand Down

0 comments on commit dd654b1

Please sign in to comment.