bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate features of |nsXPIDLC?String| that keep it out of the string hierarchy (i.e., using assigment to rebind ownership, static |Copy| members, and |getter_Shares|), fixing some leaks in the process.

git-svn-id: svn://10.0.0.236/trunk@97289 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org
2001-06-17 05:23:38 +00:00
parent 39c092ec2e
commit 90f810b66a
77 changed files with 333 additions and 650 deletions

View File

@@ -208,7 +208,9 @@ nsScriptSecurityManager::CheckPropertyAccessImpl(PRUint32 aAction,
}
else
{
nsXPIDLCString className;
nsXPIDLCString classNameStr;
const char* className;
nsCAutoString propertyName(aProperty);
if (aClassName)
className = aClassName;
@@ -216,7 +218,9 @@ nsScriptSecurityManager::CheckPropertyAccessImpl(PRUint32 aAction,
//-- Get className and propertyName from aClassInfo and aName, repectively
{
if(aClassInfo)
aClassInfo->GetClassDescription(getter_Copies(className));
aClassInfo->GetClassDescription(getter_Copies(classNameStr));
className = classNameStr.get();
if (!className)
className = "UnknownClass";
propertyName.AssignWithConversion((PRUnichar*)JSValIDToString(aJSContext, aName));