fixed crash in tables deallocation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2aa887306b
commit
af23d90aa3
@ -169,7 +169,7 @@ void wxHtmlTableCell::ReallocRows(int rows)
|
|||||||
m_CellInfo = (cellStruct**) realloc(m_CellInfo, sizeof(cellStruct*) * rows);
|
m_CellInfo = (cellStruct**) realloc(m_CellInfo, sizeof(cellStruct*) * rows);
|
||||||
if (m_NumCols != 0) {
|
if (m_NumCols != 0) {
|
||||||
int x = rows - 1;
|
int x = rows - 1;
|
||||||
m_CellInfo[x] = new cellStruct[m_NumCols];
|
m_CellInfo[x] = (cellStruct*) malloc(sizeof(cellStruct) * m_NumCols);
|
||||||
for (int i = 0; i < m_NumCols; i++)
|
for (int i = 0; i < m_NumCols; i++)
|
||||||
m_CellInfo[x][i].flag = cellFree;
|
m_CellInfo[x][i].flag = cellFree;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user