Skip to content

Commit c928add

Browse files
committed
Some tests rely on the current dinitialization order
1 parent 24d93f5 commit c928add

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
@@ -1169,6 +1169,8 @@ QgsAuthManager *QgsApplication::authManager()
11691169

11701170
void QgsApplication::exitQgis()
11711171
{
1172+
delete QgsApplication::authManager();
1173+
11721174
//Ensure that all remaining deleteLater QObjects are actually deleted before we exit.
11731175
//This isn't strictly necessary (since we're exiting anyway) but doing so prevents a lot of
11741176
//LeakSanitiser noise which hides real issues
@@ -1181,8 +1183,6 @@ void QgsApplication::exitQgis()
11811183

11821184
delete QgsProviderRegistry::instance();
11831185

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

0 commit comments

Comments
 (0)