Revert "Fixed a VIEW_ITEM memory leak"
This reverts commit 9bc2bb2651
.
Fixes: lp:1656481 (pcbnew segfault in KIGFX::VIEW_ITEM_DATA::getGroup)
https://bugs.launchpad.net/kicad/+bug/1656481
This commit is contained in:
parent
bf735b6fe7
commit
99bfa2fea2
|
@ -360,8 +360,6 @@ void VIEW::Remove( VIEW_ITEM* aItem )
|
|||
}
|
||||
|
||||
viewData->deleteGroups();
|
||||
|
||||
delete aItem->m_viewPrivData;
|
||||
aItem->m_viewPrivData = nullptr;
|
||||
}
|
||||
|
||||
|
@ -908,14 +906,12 @@ void VIEW::draw( VIEW_ITEM* aItem, bool aImmediate )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void VIEW::draw( VIEW_GROUP* aGroup, bool aImmediate )
|
||||
{
|
||||
for( unsigned int i = 0; i < aGroup->GetSize(); i++)
|
||||
draw( aGroup->GetItem(i), aImmediate );
|
||||
}
|
||||
|
||||
|
||||
struct VIEW::unlinkItem
|
||||
{
|
||||
bool operator()( VIEW_ITEM* aItem )
|
||||
|
|
Loading…
Reference in New Issue