From 284fe52b5f9da0c02d49da6849a1d710c477894b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 17 Mar 2021 12:57:45 -0400 Subject: [PATCH] fix double stop/free of decoder and analysis threads --- src/zm_monitor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 38a2814a3..b8d2fa4fc 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -3180,9 +3180,11 @@ int Monitor::Close() { packetqueue.clear(); if (decoder) { delete decoder; + decoder = nullptr; } if (analysis_thread) { delete analysis_thread; + analysis_thread = nullptr; } std::lock_guard lck(event_mutex); if (event) {