From 235b36ac478f269e75249faeeeb70e3353a1e8c2 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Tue, 3 Apr 2018 07:08:19 +0200 Subject: [PATCH] Fix issue with logger --- src/utils/Profiler.cpp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/utils/Profiler.cpp b/src/utils/Profiler.cpp index 12b449f1..96db0066 100644 --- a/src/utils/Profiler.cpp +++ b/src/utils/Profiler.cpp @@ -163,9 +163,23 @@ Profiler::Profiler() :mRootNode("Root", nullptr), mDestinations(MemoryManager::g // Destructor Profiler::~Profiler() { + + removeAllDestinations(); + destroy(); } +// Remove all logs destination previously set +void Profiler::removeAllDestinations() { + + // Delete all the destinations + for (uint i=0; i