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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user