From 759cf896c62193145daeed0006f3bc45629076ab Mon Sep 17 00:00:00 2001 From: "leaf%mozilla.org" Date: Fri, 26 May 2000 23:37:23 +0000 Subject: [PATCH] Fix for 35196, mlk. Free the C strings! r=bruce,hyatt a=waterson --- content/xbl/src/nsXBLBinding.cpp | 5 +++++ layout/xbl/src/nsXBLBinding.cpp | 5 +++++ 2 files changed, 10 insertions(+) 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.