Skip to content

Commit 542b07f

Browse files
committed
postpone deletion of caldialog to prevent race condition crash
1 parent 993957d commit 542b07f

File tree

1 file changed

+1
-1
lines changed
  • Software/PC_Application/LibreVNA-GUI/VNA

1 file changed

+1
-1
lines changed

Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ void VNA::NewDatapoint(DeviceDriver::VNAMeasurement m)
904904
cal.addMeasurements(calMeasurements, m_avg);
905905
if(m_avg.pointNum == settings.npoints - 1) {
906906
calMeasuring = false;
907-
delete calDialog;
907+
calDialog->deleteLater();
908908
calDialog = nullptr;
909909
cal.measurementsComplete();
910910
}

0 commit comments

Comments
 (0)