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