From af23d90aa30a356a678212b9bd37f30936dc9e3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 12 Aug 1999 13:36:55 +0000 Subject: [PATCH] fixed crash in tables deallocation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/mod_tables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2