mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-07 18:45:32 +00:00
Fix trying to erase m_files end when removing an embedded file.
This commit is contained in:
parent
564710b232
commit
3929c3c463
@ -127,10 +127,10 @@ void EMBEDDED_FILES::RemoveFile( const wxString& name, bool aErase )
|
||||
|
||||
if( it != m_files.end() )
|
||||
{
|
||||
m_files.erase( it );
|
||||
|
||||
if( aErase )
|
||||
delete it->second;
|
||||
|
||||
m_files.erase( it );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user