From 827a0eacf5278c04c297c96956e70ac52c181831 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sun, 17 Sep 2023 23:08:16 -0500 Subject: [PATCH] Don't destroy PlacefileLayer or PlacefileManager until background tasks have completed --- scwx-qt/source/scwx/qt/manager/placefile_manager.cpp | 2 +- scwx-qt/source/scwx/qt/map/placefile_layer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scwx-qt/source/scwx/qt/manager/placefile_manager.cpp b/scwx-qt/source/scwx/qt/manager/placefile_manager.cpp index 16aefcdd..77344524 100644 --- a/scwx-qt/source/scwx/qt/manager/placefile_manager.cpp +++ b/scwx-qt/source/scwx/qt/manager/placefile_manager.cpp @@ -45,7 +45,7 @@ public: class PlacefileRecord; explicit Impl(PlacefileManager* self) : self_ {self} {} - ~Impl() {} + ~Impl() { threadPool_.join(); } void InitializePlacefileSettings(); void ReadPlacefileSettings(); diff --git a/scwx-qt/source/scwx/qt/map/placefile_layer.cpp b/scwx-qt/source/scwx/qt/map/placefile_layer.cpp index 7e9303f4..f29d63e4 100644 --- a/scwx-qt/source/scwx/qt/map/placefile_layer.cpp +++ b/scwx-qt/source/scwx/qt/map/placefile_layer.cpp @@ -42,7 +42,7 @@ public: { ConnectSignals(); } - ~Impl() = default; + ~Impl() { threadPool_.join(); } void ConnectSignals();