summaryrefslogtreecommitdiff
path: root/i
diff options
context:
space:
mode:
authordufourj2006-03-14 01:56:28 +0000
committerdufourj2006-03-14 01:56:28 +0000
commit48f26970bd1d67f01d586b83b2d76f36acea3ab5 (patch)
tree97db5941357179212fc25e73943289c6e3c22347 /i
parentd9a38657d3f97a2543ea1528732cc6abe5e525c9 (diff)
Log :
- rajout des delete manquants.
Diffstat (limited to 'i')
-rw-r--r--i/marvin/src/log/log.cc6
-rw-r--r--i/marvin/src/log/log.hh2
-rw-r--r--i/marvin/src/log/logger.hh4
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