From 6e2b2cf1af6c6aec05ef00d62d143195c065a80f Mon Sep 17 00:00:00 2001 From: "hwaara%chello.se" Date: Tue, 20 Mar 2001 13:34:17 +0000 Subject: [PATCH] Fix "FMM: Freeing mismatched memory in PresShell::DumpReflows". bug 71956. r=rods, sr=scc. git-svn-id: svn://10.0.0.236/trunk@89904 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsPresShell.cpp | 3 ++- mozilla/layout/html/base/src/nsPresShell.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; }