Use delete[] for strings allocated with ToNewCString().

This commit is contained in:
pierre%netscape.com 1999-03-30 00:54:56 +00:00
parent 8c72135302
commit afe0c71fc1

View File

@ -329,7 +329,7 @@ PluginViewerImpl::CreatePlugin(nsIPluginHost* aHost, const nsRect& aBounds,
nsAutoString str = fullurl;
rv = aHost->InstantiateFullPagePlugin(ct, str, aResult, mOwner);
delete fullurl;
delete ct;
delete[] ct;
}
return rv;