mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 06:20:41 +00:00
Use delete[] for strings allocated with ToNewCString().
This commit is contained in:
parent
8c72135302
commit
afe0c71fc1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user