diff --git a/eeschema/sheetlab.cpp b/eeschema/sheetlab.cpp index 36c476ff45..c69343d056 100644 --- a/eeschema/sheetlab.cpp +++ b/eeschema/sheetlab.cpp @@ -445,12 +445,12 @@ void WinEDA_SchematicFrame::DeleteSheetLabel( wxDC* DC, else parent->m_Label = label->Next(); + delete SheetLabelToDel; + break; } } - delete SheetLabelToDel; - #if 0 && defined(DEBUG) std::cout << "\n\nafter deleting:\n" << std::flush; parent->Show( 0, std::cout );