From 48f26970bd1d67f01d586b83b2d76f36acea3ab5 Mon Sep 17 00:00:00 2001 From: dufourj Date: Tue, 14 Mar 2006 01:56:28 +0000 Subject: Log : - rajout des delete manquants. --- i/marvin/src/log/log.cc | 6 ++++++ i/marvin/src/log/log.hh | 2 ++ i/marvin/src/log/logger.hh | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/i/marvin/src/log/log.cc b/i/marvin/src/log/log.cc index 6a4f685..cd7bb32 100644 --- a/i/marvin/src/log/log.cc +++ b/i/marvin/src/log/log.cc @@ -52,6 +52,12 @@ Log::Log (const char *module, const char *instance) (std::string ("log.logger.default"), "stdout"))); } +Log::~Log (void) +{ + delete loggerNull_; + delete logger_; +} + /// Crée un nouveau LogMessage. LogMessage Log::operator() (const char *msg, Level level/*info*/) const diff --git a/i/marvin/src/log/log.hh b/i/marvin/src/log/log.hh index 4e240a8..1141962 100644 --- a/i/marvin/src/log/log.hh +++ b/i/marvin/src/log/log.hh @@ -57,6 +57,8 @@ class Log public: /// Constructeur. Log (const char *module, const char *instance = 0); + /// Destructor. + ~Log (void); /// Crée un nouveau LogMessage. LogMessage operator() (const char *msg, Level level = info) const; /// Récupère le module. diff --git a/i/marvin/src/log/logger.hh b/i/marvin/src/log/logger.hh index d03fba7..5bb8e42 100644 --- a/i/marvin/src/log/logger.hh +++ b/i/marvin/src/log/logger.hh @@ -31,6 +31,8 @@ class Logger { public: + /// Empty destructor. + virtual ~Logger (void) { } /// Create a logger. static Logger *create (const std::string &loggerName); /// Called when a message will be logged. @@ -50,8 +52,6 @@ class Logger protected: /// Private empty constructor. Logger (void) { } - /// Empty destructor. - virtual ~Logger (void) { } }; #endif // logger_hh -- cgit v1.2.3