From f3fffd52594065995d4c355de1571b36b2f2bbeb Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 11 Dec 2013 13:17:23 -0600 Subject: Remove QsLog destinations when they are destroyed. This fixes some issues where MultiMC was segfaulting on exit because things were trying to write to the logger while they were being destroyed, but the destinations had already been destroyed and were left in the list. --- logger/QsLogDest.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'logger/QsLogDest.h') diff --git a/logger/QsLogDest.h b/logger/QsLogDest.h index 32f1a9d0..e7fcc045 100644 --- a/logger/QsLogDest.h +++ b/logger/QsLogDest.h @@ -26,6 +26,7 @@ #pragma once #include + class QString; namespace QsLogging @@ -34,9 +35,7 @@ namespace QsLogging class Destination { public: - virtual ~Destination() - { - } + virtual ~Destination(); virtual void write(const QString &message) = 0; }; typedef std::shared_ptr DestinationPtr; -- cgit v1.2.3