in MsGraphicsPkg/Library/SimpleUIToolKit/ListBox.c [1078:1107]
VOID Dtor(VOID *this)
{
UINTN Index;
ListBox *privthis = (ListBox *)this;
for (Index = 0; Index < privthis->m_NumberOfCells; Index++) {
if (NULL != privthis->m_pCells[Index].pCellText)
{
FreePool(privthis->m_pCells[Index].pCellText);
}
}
if (NULL != privthis->m_pCells)
{
FreePool(privthis->m_pCells);
}
if (NULL != privthis->m_FontInfo)
{
FreePool(privthis->m_FontInfo);
}
if (NULL != privthis)
{
FreePool(privthis);
}
return;
}