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(); }