Actually delete the netlist when VL_LEAK_CHECKS
This commit is contained in:
parent
fd52f7f479
commit
6ab47f799b
|
|
@ -36,7 +36,7 @@ void V3Global::boot() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void V3Global::clear() {
|
void V3Global::clear() {
|
||||||
#ifdef VL_LEAK_CHECK
|
#ifdef VL_LEAK_CHECKS
|
||||||
if (m_rootp) VL_DO_CLEAR(m_rootp->deleteTree(), m_rootp = nullptr);
|
if (m_rootp) VL_DO_CLEAR(m_rootp->deleteTree(), m_rootp = nullptr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue