From 0324cbff7cdb4a10b15718550bbe15979d77e59a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 13 Nov 2014 19:44:51 +0100 Subject: [PATCH] Fix crash in StreamLogger::~StreamLogger --- lib/base/streamlogger.cpp | 4 ++++ lib/base/streamlogger.hpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lib/base/streamlogger.cpp b/lib/base/streamlogger.cpp index e5ec78641..a8e353b4a 100644 --- a/lib/base/streamlogger.cpp +++ b/lib/base/streamlogger.cpp @@ -29,6 +29,10 @@ REGISTER_TYPE(StreamLogger); boost::mutex StreamLogger::m_Mutex; +StreamLogger::StreamLogger(void) + : m_Stream(NULL), m_OwnsStream(false) +{ } + /** * Constructor for the StreamLogger class. */ diff --git a/lib/base/streamlogger.hpp b/lib/base/streamlogger.hpp index d9682fb08..c2aee91d4 100644 --- a/lib/base/streamlogger.hpp +++ b/lib/base/streamlogger.hpp @@ -38,6 +38,8 @@ class I2_BASE_API StreamLogger : public ObjectImpl public: DECLARE_OBJECT(StreamLogger); + StreamLogger(void); + virtual void Start(void); virtual void Stop(void); ~StreamLogger(void);