Skip to content

Commit

Permalink
Use an unmanaged algorithm when creating from a string
Browse files Browse the repository at this point in the history
There is no reason the algorithm should be retained in the manager.
Refs #11589
  • Loading branch information
martyngigg committed Apr 20, 2015
1 parent 9188066 commit 4951444
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/API/src/Algorithm.cpp
Expand Up @@ -884,7 +884,8 @@ IAlgorithm_sptr Algorithm::fromString(const std::string &input) {
} catch (boost::bad_lexical_cast &) {
}
}
IAlgorithm_sptr alg = AlgorithmManager::Instance().create(algName, version);
IAlgorithm_sptr alg = AlgorithmManager::Instance().createUnmanaged(algName, version);
alg->initialize();
if (boost::regex_search(input, what, propExp, boost::match_not_null)) {
std::string _propStr = what[1];

Expand Down

0 comments on commit 4951444

Please sign in to comment.