Navigation Menu

Skip to content

Commit

Permalink
Move QgsProviderRegistry::instance delete call after deferred delete …
Browse files Browse the repository at this point in the history
…call
  • Loading branch information
manisandro committed Apr 26, 2016
1 parent 79493ea commit bbe89b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsapplication.cpp
Expand Up @@ -877,15 +877,15 @@ void QgsApplication::initQgis()

void QgsApplication::exitQgis()
{
delete QgsProviderRegistry::instance();

delete QgsAuthManager::instance();

//Ensure that all remaining deleteLater QObjects are actually deleted before we exit.
//This isn't strictly necessary (since we're exiting anyway) but doing so prevents a lot of
//LeakSanitiser noise which hides real issues
QgsApplication::sendPostedEvents( nullptr, QEvent::DeferredDelete );

delete QgsProviderRegistry::instance();

//delete all registered functions from expression engine (see above comment)
QgsExpression::cleanRegisteredFunctions();

Expand Down

0 comments on commit bbe89b0

Please sign in to comment.