Fix issue with prev d83cff63f

Corrected the new/delete idiom
This commit is contained in:
Seth Hillbrand 2018-06-27 16:40:57 -07:00
parent d83cff63f6
commit 76f151b4d8
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ COMMIT& COMMIT::createModified( EDA_ITEM* aItem, EDA_ITEM* aCopy, int aExtraFlag
if( entryIt != m_changedItems.end() )
{
free( aCopy );
delete aCopy;
return *this; // item has been already modified once
}