diff --git a/content/xbl/src/nsXBLBinding.cpp b/content/xbl/src/nsXBLBinding.cpp index 8b635d1738b..4c56cb79b61 100644 --- a/content/xbl/src/nsXBLBinding.cpp +++ b/content/xbl/src/nsXBLBinding.cpp @@ -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. diff --git a/layout/xbl/src/nsXBLBinding.cpp b/layout/xbl/src/nsXBLBinding.cpp index 8b635d1738b..4c56cb79b61 100644 --- a/layout/xbl/src/nsXBLBinding.cpp +++ b/layout/xbl/src/nsXBLBinding.cpp @@ -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.