From 5adc8c8c158fdb57071cd10cb106f3398bc82eee Mon Sep 17 00:00:00 2001 From: "bruce%cybersight.com" Date: Wed, 12 Sep 2007 17:46:40 +0000 Subject: [PATCH] Use nsCRT::free() instead of delete[]. git-svn-id: svn://10.0.0.236/trunk@235595 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/browser/src/nsBookmarksService.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mozilla/suite/browser/src/nsBookmarksService.cpp b/mozilla/suite/browser/src/nsBookmarksService.cpp index 0a7c476840f..7e2d59b25a2 100644 --- a/mozilla/suite/browser/src/nsBookmarksService.cpp +++ b/mozilla/suite/browser/src/nsBookmarksService.cpp @@ -621,9 +621,9 @@ BookmarkParser::ParseBookmark(const nsString& aLine, nsCOMPtr& nodeType, bookmarkNode); } - delete [] cShortcutURL; + nsCRT::free(cShortcutURL); } - delete [] cURL; + nsCRT::free(cURL); return rv; } @@ -1543,7 +1543,7 @@ nsBookmarksService::getResourceFromLiteralNode(nsIRDFNode *node, nsIRDFResource return(NS_ERROR_NULL_POINTER); } rv = gRDF->GetResource(newURLCStr, res); - delete [] newURLCStr; + nsCRT::free(newURLCStr); return(rv); } @@ -2433,7 +2433,7 @@ nsBookmarksService::WriteBookmarksContainer(nsIRDFDataSource *ds, nsOutputFileSt if (nsnull != name) { - delete []name; + nsCRT::free(name); name = nsnull; } @@ -2444,7 +2444,7 @@ nsBookmarksService::WriteBookmarksContainer(nsIRDFDataSource *ds, nsOutputFileSt strm << "

\n"; } } - delete [] indentation; + nsCRT::free(indentation); return(rv); } @@ -2541,7 +2541,7 @@ nsBookmarksService::WriteBookmarkProperties(nsIRDFDataSource *ds, nsOutputFileSt strm << escapedAttrib; strm << "\n"; - delete []escapedAttrib; + nsCRT::free(escapedAttrib); escapedAttrib = nsnull; } } @@ -2552,7 +2552,7 @@ nsBookmarksService::WriteBookmarkProperties(nsIRDFDataSource *ds, nsOutputFileSt strm << attribute; strm << "\""; } - delete [] attribute; + nsCRT::free(attribute); attribute = nsnull; } }