Skip to content

Commit 024e8eb

Browse files
authored
Some tests rely on the current dinitialization order
1 parent 680d5d2 commit 024e8eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsapplication.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,8 @@ QgsAuthManager *QgsApplication::authManager()
11771177

11781178
void QgsApplication::exitQgis()
11791179
{
1180+
delete QgsApplication::authManager();
1181+
11801182
//Ensure that all remaining deleteLater QObjects are actually deleted before we exit.
11811183
//This isn't strictly necessary (since we're exiting anyway) but doing so prevents a lot of
11821184
//LeakSanitiser noise which hides real issues
@@ -1189,8 +1191,6 @@ void QgsApplication::exitQgis()
11891191

11901192
delete QgsProviderRegistry::instance();
11911193

1192-
delete QgsApplication::authManager();
1193-
11941194
// invalidate coordinate cache while the PROJ context held by the thread-locale
11951195
// QgsProjContextStore object is still alive. Otherwise if this later object
11961196
// is destroyed before the static variables of the cache, we might use freed memory.

0 commit comments

Comments
 (0)