Loading common/drawframe.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -168,7 +168,8 @@ EDA_DRAW_FRAME::EDA_DRAW_FRAME( wxWindow* aParent, EDA_DRAW_FRAME::~EDA_DRAW_FRAME() { SAFE_DELETE( m_currentScreen ); delete m_currentScreen; m_currentScreen = NULL; m_auimgr.UnInit(); } Loading eeschema/class_libentry.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -868,7 +868,7 @@ bool LIB_COMPONENT::LoadDrawEntries( LINE_READER& aLineReader, wxString& aErrorM { aErrorMsg.Printf( wxT( "error <%s> in DRAW command %c" ), GetChars( aErrorMsg ), line[0] ); SAFE_DELETE( newEntry ); delete newEntry; // Flush till end of draw section do Loading Loading @@ -913,7 +913,7 @@ bool LIB_COMPONENT::LoadField( LINE_READER& aLineReader, wxString& aErrorMsg ) if( !field->Load( aLineReader, aErrorMsg ) ) { SAFE_DELETE( field ); delete field; return false; } Loading @@ -931,7 +931,7 @@ bool LIB_COMPONENT::LoadField( LINE_READER& aLineReader, wxString& aErrorMsg ) if( field->GetId() == VALUE ) m_name = field->GetText(); SAFE_DELETE( field ); delete field; } else { Loading eeschema/dialogs/dialog_erc.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -247,7 +247,7 @@ void DIALOG_ERC::ReBuildMatrixPanel() wxStaticText* text = new wxStaticText( m_matrixPanel, -1, wxT( "W" ), pos ); int text_height = text->GetRect().GetHeight(); bitmap_size.y = std::max( bitmap_size.y, text_height ); SAFE_DELETE( text ); delete text; // compute the Y pos interval: pos.y = text_height; Loading eeschema/edit_label.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ SCH_TEXT* SCH_EDIT_FRAME::CreateNewText( wxDC* aDC, int aType ) if( textItem->GetText().IsEmpty() ) { SAFE_DELETE( textItem ); delete textItem; return NULL; } Loading eeschema/files-io.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -293,7 +293,8 @@ bool SCH_EDIT_FRAME::LoadOneEEProject( const wxString& aFileName, bool aIsNew ) // Clear the screen before open a new file if( g_RootSheet ) { SAFE_DELETE( g_RootSheet ); delete g_RootSheet; g_RootSheet = NULL; } CreateScreens(); Loading Loading
common/drawframe.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -168,7 +168,8 @@ EDA_DRAW_FRAME::EDA_DRAW_FRAME( wxWindow* aParent, EDA_DRAW_FRAME::~EDA_DRAW_FRAME() { SAFE_DELETE( m_currentScreen ); delete m_currentScreen; m_currentScreen = NULL; m_auimgr.UnInit(); } Loading
eeschema/class_libentry.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -868,7 +868,7 @@ bool LIB_COMPONENT::LoadDrawEntries( LINE_READER& aLineReader, wxString& aErrorM { aErrorMsg.Printf( wxT( "error <%s> in DRAW command %c" ), GetChars( aErrorMsg ), line[0] ); SAFE_DELETE( newEntry ); delete newEntry; // Flush till end of draw section do Loading Loading @@ -913,7 +913,7 @@ bool LIB_COMPONENT::LoadField( LINE_READER& aLineReader, wxString& aErrorMsg ) if( !field->Load( aLineReader, aErrorMsg ) ) { SAFE_DELETE( field ); delete field; return false; } Loading @@ -931,7 +931,7 @@ bool LIB_COMPONENT::LoadField( LINE_READER& aLineReader, wxString& aErrorMsg ) if( field->GetId() == VALUE ) m_name = field->GetText(); SAFE_DELETE( field ); delete field; } else { Loading
eeschema/dialogs/dialog_erc.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -247,7 +247,7 @@ void DIALOG_ERC::ReBuildMatrixPanel() wxStaticText* text = new wxStaticText( m_matrixPanel, -1, wxT( "W" ), pos ); int text_height = text->GetRect().GetHeight(); bitmap_size.y = std::max( bitmap_size.y, text_height ); SAFE_DELETE( text ); delete text; // compute the Y pos interval: pos.y = text_height; Loading
eeschema/edit_label.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ SCH_TEXT* SCH_EDIT_FRAME::CreateNewText( wxDC* aDC, int aType ) if( textItem->GetText().IsEmpty() ) { SAFE_DELETE( textItem ); delete textItem; return NULL; } Loading
eeschema/files-io.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -293,7 +293,8 @@ bool SCH_EDIT_FRAME::LoadOneEEProject( const wxString& aFileName, bool aIsNew ) // Clear the screen before open a new file if( g_RootSheet ) { SAFE_DELETE( g_RootSheet ); delete g_RootSheet; g_RootSheet = NULL; } CreateScreens(); Loading