Fixed a VIEW_ITEM memory leak
This commit is contained in:
parent
c50d28d94d
commit
9bc2bb2651
|
@ -360,6 +360,8 @@ void VIEW::Remove( VIEW_ITEM* aItem )
|
|||
}
|
||||
|
||||
viewData->deleteGroups();
|
||||
|
||||
delete aItem->m_viewPrivData;
|
||||
aItem->m_viewPrivData = nullptr;
|
||||
}
|
||||
|
||||
|
@ -906,12 +908,14 @@ 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