diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index dd1ad65bc95..d4bf342c17d 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -19,6 +19,7 @@ * * Contributor(s): * Steve Clark (buster@netscape.com) + * Håkan Waara (hwaara@chello.se) * * IBM Corporation * @@ -6271,7 +6272,7 @@ PresShell::DumpReflows() mReflowCountMgr->DisplayTotals(uriStr); mReflowCountMgr->DisplayHTMLTotals(uriStr); mReflowCountMgr->DisplayDiffsInTotals("Differences"); - if (uriStr) delete [] uriStr; + if (uriStr) nsCRT::free(uriStr); } return NS_OK; } diff --git a/mozilla/layout/html/base/src/nsPresShell.cpp b/mozilla/layout/html/base/src/nsPresShell.cpp index dd1ad65bc95..d4bf342c17d 100644 --- a/mozilla/layout/html/base/src/nsPresShell.cpp +++ b/mozilla/layout/html/base/src/nsPresShell.cpp @@ -19,6 +19,7 @@ * * Contributor(s): * Steve Clark (buster@netscape.com) + * Håkan Waara (hwaara@chello.se) * * IBM Corporation * @@ -6271,7 +6272,7 @@ PresShell::DumpReflows() mReflowCountMgr->DisplayTotals(uriStr); mReflowCountMgr->DisplayHTMLTotals(uriStr); mReflowCountMgr->DisplayDiffsInTotals("Differences"); - if (uriStr) delete [] uriStr; + if (uriStr) nsCRT::free(uriStr); } return NS_OK; }