fixed crash in ~wxHtmlCell
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -147,10 +147,12 @@ wxHtmlContainerCell::wxHtmlContainerCell(wxHtmlContainerCell *parent) : wxHtmlCe
|
|||||||
|
|
||||||
wxHtmlContainerCell::~wxHtmlContainerCell()
|
wxHtmlContainerCell::~wxHtmlContainerCell()
|
||||||
{
|
{
|
||||||
if (m_Cells)
|
wxHtmlCell *cell = m_Cells;
|
||||||
|
while ( cell )
|
||||||
{
|
{
|
||||||
for (wxHtmlCell *cell = m_Cells; cell; cell = cell->GetNext())
|
wxHtmlCell *cellNext = cell->GetNext();
|
||||||
delete cell;
|
delete cell;
|
||||||
|
cell = cellNext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user