Cleanup some memory leaks

This commit is contained in:
Ian McInerney 2020-07-06 02:11:17 +01:00
parent 6672efdf2c
commit 476558ece7
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -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;
}