From 78c2338de664f3df9679a1bcf848b72a4e17d51d Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Fri, 3 Aug 2007 00:08:28 +0000 Subject: [PATCH] Fix leak of xptiInterfaceInfo in DebugDump. b=389765 r+sr=jst a=DEBUG-only git-svn-id: svn://10.0.0.236/trunk@231385 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/src/xpconnect/src/xpcwrappedjsclass.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/js/src/xpconnect/src/xpcwrappedjsclass.cpp b/mozilla/js/src/xpconnect/src/xpcwrappedjsclass.cpp index 8c032ff1fbf..2bc60804485 100644 --- a/mozilla/js/src/xpconnect/src/xpcwrappedjsclass.cpp +++ b/mozilla/js/src/xpconnect/src/xpcwrappedjsclass.cpp @@ -1742,10 +1742,10 @@ nsXPCWrappedJSClass::DebugDump(PRInt16 depth) if(depth) { uint16 i; - nsIInterfaceInfo* parent; + nsCOMPtr parent; XPC_LOG_INDENT(); - mInfo->GetParent(&parent); - XPC_LOG_ALWAYS(("parent @ %x", parent)); + mInfo->GetParent(getter_AddRefs(parent)); + XPC_LOG_ALWAYS(("parent @ %x", parent.get())); mInfo->GetMethodCount(&methodCount); XPC_LOG_ALWAYS(("MethodCount = %d", methodCount)); mInfo->GetConstantCount(&i);