You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2025/07/15 07:20:11 UTC

(logging-log4cxx) 01/01: Prevent potential deadlock on shutdown when using AsyncAppender

This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch prevent_potential_async_appender_deadlock
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git

commit 223aabc15e61237d3d52fb2af5d9501cbf528d4a
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Tue Jul 15 17:19:42 2025 +1000

    Prevent potential deadlock on shutdown when using AsyncAppender
---
 src/main/cpp/loglog.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/cpp/loglog.cpp b/src/main/cpp/loglog.cpp
index c5384c4d..016485c6 100644
--- a/src/main/cpp/loglog.cpp
+++ b/src/main/cpp/loglog.cpp
@@ -57,7 +57,8 @@ LogLog::LogLog() :
 	m_priv->debugEnabled = OptionConverter::toBoolean(log4cxxDebug, false);
 }
 
-LogLog::~LogLog(){}
+LogLog::~LogLog()
+{ m_priv.reset(); }
 
 LogLog& LogLog::getInstance()
 {