From: Morgan Deters Date: Tue, 5 Mar 2013 00:58:09 +0000 (-0500) Subject: Bugfix for SmtEngine: proper unsubscribing for NodeManager events X-Git-Tag: cvc5-1.0.0~7391^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8eb02754af2dbef5b3704d6674e8b7376f07f8a1;p=cvc5.git Bugfix for SmtEngine: proper unsubscribing for NodeManager events --- diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 09fed4f9f..af02c5186 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -365,6 +365,10 @@ public: d_smt.d_nodeManager->subscribeEvents(this); } + ~SmtEnginePrivate() { + d_smt.d_nodeManager->unsubscribeEvents(this); + } + void nmNotifyNewSort(TypeNode tn) { DeclareTypeCommand c(tn.getAttribute(expr::VarNameAttr()), 0,