Fix leak of xptiInterfaceInfo in DebugDump. b=389765 r+sr=jst a=DEBUG-only

This commit is contained in:
dbaron@dbaron.org 2007-08-02 17:08:28 -07:00
Родитель c5c9d3cb46
Коммит 3f87493896
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1742,10 +1742,10 @@ nsXPCWrappedJSClass::DebugDump(PRInt16 depth)
if(depth)
{
uint16 i;
nsIInterfaceInfo* parent;
nsCOMPtr<nsIInterfaceInfo> 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);