Skip to content


Some tests rely on the current dinitialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 3, 2019
1 parent 24d93f5 commit c928add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsapplication.cpp
Expand Up @@ -1169,6 +1169,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
Expand All @@ -1181,8 +1183,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.
Expand Down

0 comments on commit c928add

Please sign in to comment.