core: Make Watchdog safe to delete

This commit is contained in:
Tommaso Pecorella
2020-02-27 08:49:12 +00:00
parent 50423cf34b
commit 8d4297f245

View File

@@ -42,6 +42,7 @@ Watchdog::Watchdog ()
Watchdog::~Watchdog ()
{
NS_LOG_FUNCTION (this);
m_event.Cancel ();
delete m_impl;
}