From 2b0eacfb8d29411b1ebc77b742ede25249d1a1d0 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 14 Apr 2004 05:32:13 +0000 Subject: [PATCH] Bug 226167 DRefTool analysis for soap files r=roc sr=roc --- extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp b/extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp index d0b1c221f90..c436b14ad6f 100644 --- a/extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp +++ b/extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp @@ -2160,6 +2160,9 @@ static nsresult DecodeStructParticle(nsISOAPEncoding* aEncoding, nsIDOMElement* PRUint32 i; if (compositor == nsISchemaModelGroup::COMPOSITOR_ALL) { // This handles out-of-order appearances. nsCOMPtr all = new nsSupportsArray(); // Create something we can mutate + if (!all) + return NS_ERROR_OUT_OF_MEMORY; + all->SizeTo(particleCount); nsCOMPtr child; PRBool mangled = PR_FALSE;