From 79fe6585da0ab32da573521cdfcd26c38287ddac Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Thu, 13 Apr 2006 23:39:49 +0000 Subject: [PATCH] Bug 333302: OOM [@ NS_NewInterfaceRequestorAggregation], patch by Ryan Flint , r=timeless, sr=darin --- xpcom/base/nsInterfaceRequestorAgg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/base/nsInterfaceRequestorAgg.cpp b/xpcom/base/nsInterfaceRequestorAgg.cpp index 26491701cdb..7eff6733e00 100644 --- a/xpcom/base/nsInterfaceRequestorAgg.cpp +++ b/xpcom/base/nsInterfaceRequestorAgg.cpp @@ -71,7 +71,7 @@ NS_NewInterfaceRequestorAggregation(nsIInterfaceRequestor *aFirst, nsIInterfaceRequestor **aResult) { *aResult = new nsInterfaceRequestorAgg(aFirst, aSecond); - if (!aResult) + if (!*aResult) return NS_ERROR_OUT_OF_MEMORY; NS_ADDREF(*aResult); return NS_OK;