Fix some free/delete issues

Removes the C-format memory management
This commit is contained in:
Seth Hillbrand 2021-04-08 16:47:52 -07:00
parent da6f9c399f
commit 7b3c7e1ef3
1 changed files with 2 additions and 2 deletions

View File

@ -1897,7 +1897,7 @@ bool FABMASTER::loadZones( BOARD* aBoard )
for( auto zone : zones_to_delete )
{
aBoard->Remove( zone );
free(zone);
delete zone;
}
return true;
@ -2179,7 +2179,7 @@ bool FABMASTER::loadFootprints( BOARD* aBoard )
if( padstack == pads.end() )
{
///TODO:Warning
free( newpad );
delete newpad;
continue;
}
else