diff --git a/src/include/Context.h b/src/include/Context.h index bf992d0a2bf..e30c3f68ce6 100644 --- a/src/include/Context.h +++ b/src/include/Context.h @@ -217,7 +217,11 @@ public: : cct(cct_) { } - + ~C_ContextsBase() override { + for (auto c : contexts) { + delete c; + } + } void add(ContextType* c) { contexts.push_back(c); }