7
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:
Alex Shvartzkop 2025-02-11 00:08:39 +03:00
parent 564710b232
commit 3929c3c463

View File

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