Skip to content
Permalink
Browse files

Move QgsProviderRegistry::instance delete call after deferred delete …

…call
  • Loading branch information
manisandro committed Apr 11, 2016
1 parent c913e83 commit f0c1bbbae927ec63f3a0bd3570333ab4ad2b0de6
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsapplication.cpp
@@ -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();

0 comments on commit f0c1bbb

Please sign in to comment.
You can’t perform that action at this time.