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 29, 2016
1 parent c913e83 commit f0c1bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsapplication.cpp
Expand Up @@ -867,15 +867,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 f0c1bbb

Please sign in to comment.