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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user