aboutsummaryrefslogtreecommitdiffstats
path: root/src/algo_factory
diff options
context:
space:
mode:
Diffstat (limited to 'src/algo_factory')
-rw-r--r--src/algo_factory/algo_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algo_factory/algo_cache.h b/src/algo_factory/algo_cache.h
index 339b33660..b11d78742 100644
--- a/src/algo_factory/algo_cache.h
+++ b/src/algo_factory/algo_cache.h
@@ -68,7 +68,7 @@ class Algorithm_Cache
*/
void clear_cache();
- ~Algorithm_Cache();
+ ~Algorithm_Cache() { clear_cache(); }
private:
typename std::map<std::string, std::map<std::string, T*> >::const_iterator
find_algorithm(const std::string& algo_spec);