diff --git a/src/V3PreProc.cpp b/src/V3PreProc.cpp index 438acd618..3c44d9b10 100644 --- a/src/V3PreProc.cpp +++ b/src/V3PreProc.cpp @@ -200,6 +200,9 @@ public: m_rawAtBol = true; m_defDepth = 0; } + ~V3PreProcImp() { + if (m_lexp) { delete m_lexp; m_lexp = NULL; } + } }; //*************************************************************************