Internals: Add VL_DO_CLEAR delete protections. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-01-18 10:29:49 -05:00
parent 2f4954ca68
commit 09199f79a6
23 changed files with 57 additions and 48 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ public:
m_lexp->debug(debug()>=5 ? debug() : 0); // See also V3PreProc::debug() method
}
~V3PreProcImp() {
if (m_lexp) { delete m_lexp; m_lexp = NULL; }
if (m_lexp) VL_DO_CLEAR(delete m_lexp, m_lexp = NULL);
}
};