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:
Vadim Zeitlin
2001-07-14 02:02:09 +00:00
parent 4d01e58361
commit 491c9920d0

View File

@@ -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;
} }
} }