mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Add VL_DO_CLEAR delete protections. No functional change intended.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user