Skip to content
Permalink
Browse files

Fix potential crash on exit

  • Loading branch information
nyalldawson committed Nov 1, 2018
1 parent dae9376 commit 132688eac722a61194c8da49d972d36728aade1c
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/qgisapp.cpp
@@ -1559,6 +1559,14 @@ QgisApp::~QgisApp()
delete canvas;
}

// these may have references to map layers which need to be cleaned up
delete mBrowserWidget;
mBrowserWidget = nullptr;
delete mBrowserWidget2;
mBrowserWidget2 = nullptr;
delete mBrowserModel;
mBrowserModel = nullptr;

QgsGui::instance()->nativePlatformInterface()->cleanup();

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

0 comments on commit 132688e

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