X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2776d7c3bd349e1c42de0c4da83c7f5b0cfab0ec..4df78dc36e933fb1c3aa7c9d7ae2757a898ae05c:/src/html/mod_tables.cpp?ds=sidebyside diff --git a/src/html/mod_tables.cpp b/src/html/mod_tables.cpp index b3d99ecb21..01bc6552ab 100644 --- a/src/html/mod_tables.cpp +++ b/src/html/mod_tables.cpp @@ -169,7 +169,7 @@ void wxHtmlTableCell::ReallocRows(int rows) m_CellInfo = (cellStruct**) realloc(m_CellInfo, sizeof(cellStruct*) * rows); if (m_NumCols != 0) { 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++) m_CellInfo[x][i].flag = cellFree; }