diff --git a/pcbnew/dialogs/dialog_plot.cpp b/pcbnew/dialogs/dialog_plot.cpp index 095bac51ab..a1028fc368 100644 --- a/pcbnew/dialogs/dialog_plot.cpp +++ b/pcbnew/dialogs/dialog_plot.cpp @@ -867,6 +867,7 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event ) { PlotOneBoardLayer( board, plotter, layer, m_plotOpts ); plotter->EndPlot(); + delete plotter->RenderSettings(); delete plotter; msg.Printf( _( "Plot file \"%s\" created." ), fn.GetFullPath() ); diff --git a/pcbnew/dialogs/panel_pcbnew_color_settings.cpp b/pcbnew/dialogs/panel_pcbnew_color_settings.cpp index 641d7e19f8..b74d8c2586 100644 --- a/pcbnew/dialogs/panel_pcbnew_color_settings.cpp +++ b/pcbnew/dialogs/panel_pcbnew_color_settings.cpp @@ -84,6 +84,7 @@ PANEL_PCBNEW_COLOR_SETTINGS::PANEL_PCBNEW_COLOR_SETTINGS( PCB_EDIT_FRAME* aFrame PANEL_PCBNEW_COLOR_SETTINGS::~PANEL_PCBNEW_COLOR_SETTINGS() { + delete m_currentSettings; delete m_page; delete m_titleBlock; }