Skip to content
Browse files

Some tests rely on the current dinitialization order

  • Loading branch information
m-kuhn committed Mar 3, 2019
1 parent cbb9cf6 commit e40003996a8738fa05f750aef5957a5d6b3ea9ad
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsapplication.cpp
@@ -1177,6 +1177,8 @@ QgsAuthManager *QgsApplication::authManager()

void QgsApplication::exitQgis()
delete QgsApplication::authManager();

//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
@@ -1189,8 +1191,6 @@ void QgsApplication::exitQgis()

delete QgsProviderRegistry::instance();

delete QgsApplication::authManager();

// invalidate coordinate cache while the PROJ context held by the thread-locale
// QgsProjContextStore object is still alive. Otherwise if this later object
// is destroyed before the static variables of the cache, we might use freed memory.

0 comments on commit e400039

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