From 2300c27a4f958f2970763b033516e63f69cef371 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Sat, 30 Oct 1999 05:48:07 +0000 Subject: [PATCH] fix nsIInterfaceInfoManager leak. bug=15380, r=jband git-svn-id: svn://10.0.0.236/trunk@52317 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/src/xpconnect/src/xpcwrappednativeclass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/js/src/xpconnect/src/xpcwrappednativeclass.cpp b/mozilla/js/src/xpconnect/src/xpcwrappednativeclass.cpp index d6b6e9f150b..7b1c2862619 100644 --- a/mozilla/js/src/xpconnect/src/xpcwrappednativeclass.cpp +++ b/mozilla/js/src/xpconnect/src/xpcwrappednativeclass.cpp @@ -72,8 +72,8 @@ nsXPCWrappedNativeClass::GetNewOrUsedClass(XPCContext* xpcc, return clazz; } - nsCOMPtr iimgr; - if(!(iimgr = nsXPConnect::GetInterfaceInfoManager())) + nsCOMPtr iimgr = dont_AddRef(nsXPConnect::GetInterfaceInfoManager()); + if(!iimgr) { SET_ERROR_CODE(NS_ERROR_FAILURE); return nsnull;