From 25c8227abf6492c1224279869dd69cd7dbaa260f Mon Sep 17 00:00:00 2001 From: "pavlov@pavlov.net" Date: Wed, 12 Dec 2007 20:17:14 -0800 Subject: [PATCH] bug 408148. use nsAutoTArray rather than nsTArray in nsXBLService::GetBinding. r/sr=sicking --- content/xbl/src/nsXBLService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/xbl/src/nsXBLService.cpp b/content/xbl/src/nsXBLService.cpp index 0b6728bbb691..3eb9a7e90c84 100644 --- a/content/xbl/src/nsXBLService.cpp +++ b/content/xbl/src/nsXBLService.cpp @@ -728,7 +728,7 @@ nsXBLService::GetBinding(nsIContent* aBoundElement, nsIURI* aURI, PRBool* aIsReady, nsXBLBinding** aResult) { // More than 6 binding URIs are rare, see bug 55070 comment 18. - nsTArray uris(6); + nsAutoTArray uris; return GetBinding(aBoundElement, aURI, aPeekOnly, aOriginPrincipal, aIsReady, aResult, uris); }