diff --git a/src/dlg_filter.cpp b/src/dlg_filter.cpp index 7a2a028c8..772133904 100644 --- a/src/dlg_filter.cpp +++ b/src/dlg_filter.cpp @@ -211,8 +211,8 @@ FilterDlg::FilterDlg(wxWindow* parent, bool running, bool *newMicInFilter, bool //------------------------------------------------------------------------- FilterDlg::~FilterDlg() { - delete m_MicInMagdB; - delete m_SpkOutMagdB; + delete[] m_MicInMagdB; + delete[] m_SpkOutMagdB; // Disconnect Events diff --git a/src/fdmdv2_main.cpp b/src/fdmdv2_main.cpp index 7cd03bccf..1edf80008 100644 --- a/src/fdmdv2_main.cpp +++ b/src/fdmdv2_main.cpp @@ -2733,8 +2733,8 @@ void MainFrame::OnTogBtnOnOff(wxCommandEvent& event) } else { // FreeDV clean up - delete g_error_hist; - delete g_error_histn; + delete[] g_error_hist; + delete[] g_error_histn; codec2_fifo_destroy(g_error_pattern_fifo); freedv_close(g_pfreedv); speex_preprocess_state_destroy(g_speex_st); diff --git a/src/fdmdv2_plot_scalar.cpp b/src/fdmdv2_plot_scalar.cpp index 9a794f53d..02b968823 100644 --- a/src/fdmdv2_plot_scalar.cpp +++ b/src/fdmdv2_plot_scalar.cpp @@ -80,7 +80,7 @@ PlotScalar::PlotScalar(wxFrame* parent, //---------------------------------------------------------------- PlotScalar::~PlotScalar() { - delete m_mem; + delete[] m_mem; } //----------------------------------------------------------------