diff --git a/src/loggers/bt_cout_logger.cpp b/src/loggers/bt_cout_logger.cpp index 6fba9b931dc84d..72f5915a1b71b2 100644 --- a/src/loggers/bt_cout_logger.cpp +++ b/src/loggers/bt_cout_logger.cpp @@ -35,6 +35,7 @@ void StdCoutLogger::callback(Duration timestamp, const TreeNode& node, NodeStatu void StdCoutLogger::flush() { std::cout << std::flush; + ref_count = false; } } // end namespace diff --git a/src/loggers/bt_minitrace_logger.cpp b/src/loggers/bt_minitrace_logger.cpp index 90d0f26a97ac40..302e66ff900376 100644 --- a/src/loggers/bt_minitrace_logger.cpp +++ b/src/loggers/bt_minitrace_logger.cpp @@ -24,6 +24,7 @@ MinitraceLogger::~MinitraceLogger() { minitrace::mtr_flush(); minitrace::mtr_shutdown(); + ref_count = false; } void MinitraceLogger::callback(Duration /*timestamp*/, diff --git a/src/loggers/bt_zmq_publisher.cpp b/src/loggers/bt_zmq_publisher.cpp index c9d1aa46470f56..5276df4c81095c 100644 --- a/src/loggers/bt_zmq_publisher.cpp +++ b/src/loggers/bt_zmq_publisher.cpp @@ -86,6 +86,7 @@ PublisherZMQ::~PublisherZMQ() } flush(); delete zmq_; + ref_count = false; }