summaryrefslogtreecommitdiffstats
path: root/logger/QsLogDest.h
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-12-11 13:17:23 -0600
committerAndrew <forkk@forkk.net>2013-12-11 13:17:23 -0600
commitf3fffd52594065995d4c355de1571b36b2f2bbeb (patch)
treecb9654d8ba5449d0e0ec1113a8ad1b739b73a1c4 /logger/QsLogDest.h
parent35ec5997308ec48f45c3a8d6483bc83dc1c1ef09 (diff)
downloadMultiMC-f3fffd52594065995d4c355de1571b36b2f2bbeb.tar
MultiMC-f3fffd52594065995d4c355de1571b36b2f2bbeb.tar.gz
MultiMC-f3fffd52594065995d4c355de1571b36b2f2bbeb.tar.lz
MultiMC-f3fffd52594065995d4c355de1571b36b2f2bbeb.tar.xz
MultiMC-f3fffd52594065995d4c355de1571b36b2f2bbeb.zip
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.
Diffstat (limited to 'logger/QsLogDest.h')
-rw-r--r--logger/QsLogDest.h5
1 files changed, 2 insertions, 3 deletions
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 <memory>
+
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<Destination> DestinationPtr;