Skip to content
Browse files
Move QgsProviderRegistry::instance delete call after deferred delete …
  • Loading branch information
manisandro committed Apr 29, 2016
1 parent c913e83 commit f0c1bbb
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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)

0 comments on commit f0c1bbb

Please sign in to comment.