зеркало из https://github.com/mozilla/pjs.git
Fix for 35196, mlk. Free the C strings! r=bruce,hyatt a=waterson
This commit is contained in:
Родитель
4b203e621f
Коммит
759cf896c6
|
@ -768,6 +768,11 @@ nsXBLBinding::InstallProperties(nsIContent* aBoundElement)
|
|||
PR_FALSE,
|
||||
&myFunc);
|
||||
}
|
||||
|
||||
//we are done with args, time to free the strings therein
|
||||
for (j = 0; j < argCount; j++) {
|
||||
nsAllocator::Free(args[j]);
|
||||
}
|
||||
}
|
||||
else if (tagName.get() == kPropertyAtom) {
|
||||
// Obtain our name attribute.
|
||||
|
|
|
@ -768,6 +768,11 @@ nsXBLBinding::InstallProperties(nsIContent* aBoundElement)
|
|||
PR_FALSE,
|
||||
&myFunc);
|
||||
}
|
||||
|
||||
//we are done with args, time to free the strings therein
|
||||
for (j = 0; j < argCount; j++) {
|
||||
nsAllocator::Free(args[j]);
|
||||
}
|
||||
}
|
||||
else if (tagName.get() == kPropertyAtom) {
|
||||
// Obtain our name attribute.
|
||||
|
|
Загрузка…
Ссылка в новой задаче