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/QsLog.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'logger/QsLog.cpp') diff --git a/logger/QsLog.cpp b/logger/QsLog.cpp index 8cf68a53..87d7a412 100644 --- a/logger/QsLog.cpp +++ b/logger/QsLog.cpp @@ -134,4 +134,9 @@ void Logger::write(const QString &message) } } +void Logger::removeDestination(Destination* destination) +{ + d->destList.removeAll(destination); +} + } // end namespace -- cgit