Use nsCRT::free() instead of delete[].
git-svn-id: svn://10.0.0.236/trunk@235595 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2b757a45e1
commit
5adc8c8c15
@ -621,9 +621,9 @@ BookmarkParser::ParseBookmark(const nsString& aLine, nsCOMPtr<nsIRDFContainer>&
|
||||
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 << "</DL><p>\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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user