Browse Source

Fix some free/delete issues

Removes the C-format memory management
6.0.7
Seth Hillbrand 5 years ago
parent
commit
7b3c7e1ef3
  1. 4
      pcbnew/plugins/fabmaster/import_fabmaster.cpp

4
pcbnew/plugins/fabmaster/import_fabmaster.cpp

@ -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

Loading…
Cancel
Save