summaryrefslogtreecommitdiff
path: root/src/PolySetEvaluator.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-24 23:03:27 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-24 23:03:27 (GMT)
commit222d0d16e3383051c6fcef7b5e6de2559868c9fd (patch)
treeb24f48aafe1126ce07e0e99a5b48eca5612e4009 /src/PolySetEvaluator.cc
parent6eaacd6d6263316a7f554ea1c93fa22525a0e88a (diff)
Fixed nasty bug reported by Pasca Andrei - if the underlying cache in Tree gets resized during the execution of this method, the reference ceases to be valid and causes arbitrary nastyness
Diffstat (limited to 'src/PolySetEvaluator.cc')
-rw-r--r--src/PolySetEvaluator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PolySetEvaluator.cc b/src/PolySetEvaluator.cc
index e0fcf68..537dc9d 100644
--- a/src/PolySetEvaluator.cc
+++ b/src/PolySetEvaluator.cc
@@ -19,7 +19,7 @@
*/
shared_ptr<PolySet> PolySetEvaluator::getPolySet(const AbstractNode &node, bool cache)
{
- const std::string &cacheid = this->tree.getIdString(node);
+ std::string cacheid = this->tree.getIdString(node);
if (PolySetCache::instance()->contains(cacheid)) {
#ifdef DEBUG
contact: Jan Huwald // Impressum