From 8d4297f245e39b0929c4793fdb6a9f7ff3000c0a Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Thu, 27 Feb 2020 08:49:12 +0000 Subject: [PATCH] core: Make Watchdog safe to delete --- src/core/model/watchdog.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/model/watchdog.cc b/src/core/model/watchdog.cc index e28d6889d..109a8ef81 100644 --- a/src/core/model/watchdog.cc +++ b/src/core/model/watchdog.cc @@ -42,6 +42,7 @@ Watchdog::Watchdog () Watchdog::~Watchdog () { NS_LOG_FUNCTION (this); + m_event.Cancel (); delete m_impl; }