Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Delete cad dock AFTER map tools, as they may reference it in their cl…
…eanup code
  • Loading branch information
nyalldawson committed Sep 28, 2021
1 parent bcb1679 commit 1fb21f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/qgisapp.cpp
Expand Up @@ -1854,9 +1854,6 @@ QgisApp::~QgisApp()

mNetworkLoggerWidgetFactory.reset();

delete mAdvancedDigitizingDockWidget;
mAdvancedDigitizingDockWidget = nullptr;

delete mInternalClipboard;
delete mQgisInterface;
delete mStyleSheetBuilder;
Expand All @@ -1865,6 +1862,10 @@ QgisApp::~QgisApp()
mMapCanvas->unsetMapTool( tool );
mMapTools.reset();

// must come after deleting map tools
delete mAdvancedDigitizingDockWidget;
mAdvancedDigitizingDockWidget = nullptr;

delete mpMaptip;

delete mpGpsWidget;
Expand Down

0 comments on commit 1fb21f6

Please sign in to comment.