diff options
author | Andrew <forkk@forkk.net> | 2013-12-11 13:17:23 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-12-11 13:17:23 -0600 |
commit | f3fffd52594065995d4c355de1571b36b2f2bbeb (patch) | |
tree | cb9654d8ba5449d0e0ec1113a8ad1b739b73a1c4 /logger/QsLogDest.h | |
parent | 35ec5997308ec48f45c3a8d6483bc83dc1c1ef09 (diff) | |
download | MultiMC-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.h | 5 |
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; |