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:
Andrew
2013-12-11 13:17:23 -06:00
parent 35ec599730
commit f3fffd5259
4 changed files with 17 additions and 4 deletions

View File

@ -134,4 +134,9 @@ void Logger::write(const QString &message)
}
}
void Logger::removeDestination(Destination* destination)
{
d->destList.removeAll(destination);
}
} // end namespace