X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3364ab799a731e813bfe380a30fdf6ecfc3c2738..4df78dc36e933fb1c3aa7c9d7ae2757a898ae05c:/src/html/mod_tables.cpp?ds=sidebyside diff --git a/src/html/mod_tables.cpp b/src/html/mod_tables.cpp index 3707b8026d..01bc6552ab 100644 --- a/src/html/mod_tables.cpp +++ b/src/html/mod_tables.cpp @@ -338,7 +338,7 @@ void wxHtmlTableCell::Layout(int w) /* 3. sub-layout all cells: */ { - int *ypos = (int*) malloc(sizeof(int) * (m_NumRows + 1)); + int *ypos = new int[m_NumRows + 1]; int actcol, actrow; int fullwid; @@ -385,7 +385,7 @@ void wxHtmlTableCell::Layout(int w) } m_Height = ypos[m_NumRows]; - free(ypos); + delete[] ypos; } }