From 222d0d16e3383051c6fcef7b5e6de2559868c9fd Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 25 Jan 2012 00:03:27 +0100 Subject: 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 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 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 -- cgit v0.10.1