mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix a mem leak i caused
This commit is contained in:
parent
77c7cf7cc4
commit
1d7053ea62
@ -489,6 +489,16 @@ SIM_PLOT_TAB::SIM_PLOT_TAB( const wxString& aSimCommand, wxWindow* parent ) :
|
||||
|
||||
SIM_PLOT_TAB::~SIM_PLOT_TAB()
|
||||
{
|
||||
while( !m_plotsVector.empty() )
|
||||
{
|
||||
SIM_PLOT_DIAGRAM* plot = m_plotsVector.back();
|
||||
|
||||
m_plotsVector.pop_back();
|
||||
delete plot;
|
||||
}
|
||||
|
||||
m_plotsVector.clear();
|
||||
|
||||
// ~mpWindow destroys all the added layers, so there is no need to destroy m_traces contents
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user