From 542b07f52c6ca41cccf62e40873e83ccceff0e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Sun, 18 Feb 2024 11:37:46 +0100 Subject: [PATCH] postpone deletion of caldialog to prevent race condition crash --- Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp b/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp index 06acb47..ce6cb36 100644 --- a/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp +++ b/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp @@ -904,7 +904,7 @@ void VNA::NewDatapoint(DeviceDriver::VNAMeasurement m) cal.addMeasurements(calMeasurements, m_avg); if(m_avg.pointNum == settings.npoints - 1) { calMeasuring = false; - delete calDialog; + calDialog->deleteLater(); calDialog = nullptr; cal.measurementsComplete(); }