From 16f90bea8364ed93b4eb1141a9e52169e077bee1 Mon Sep 17 00:00:00 2001 From: Mihir Lad Date: Fri, 24 Jul 2020 00:00:47 -0400 Subject: [PATCH] dwm: Reset m_ipc with nullptr Reset with nullptr to properly release and delete m_ipc. --- src/modules/dwm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/dwm.cpp b/src/modules/dwm.cpp index 0d256858..08bfea78 100644 --- a/src/modules/dwm.cpp +++ b/src/modules/dwm.cpp @@ -145,7 +145,7 @@ namespace modules { void dwm_module::stop() { try { m_log.info("%s: Disconnecting from socket", name()); - m_ipc.reset(); + m_ipc.reset(nullptr); } catch (...) { }