Skip to content

Commit 132688e

Browse files
committedNov 1, 2018
Fix potential crash on exit
1 parent dae9376 commit 132688e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,14 @@ QgisApp::~QgisApp()
15591559
delete canvas;
15601560
}
15611561

1562+
// these may have references to map layers which need to be cleaned up
1563+
delete mBrowserWidget;
1564+
mBrowserWidget = nullptr;
1565+
delete mBrowserWidget2;
1566+
mBrowserWidget2 = nullptr;
1567+
delete mBrowserModel;
1568+
mBrowserModel = nullptr;
1569+
15621570
QgsGui::instance()->nativePlatformInterface()->cleanup();
15631571

15641572
// This function *MUST* be the last one called, as it destroys in

0 commit comments

Comments
 (0)
Please sign in to comment.