Bug 484309 Switch component manager logging over to NS_Free c.f. bug 331165 r+sr=bsmedberg

This commit is contained in:
Neil Rashbrook 2009-04-01 17:08:03 +01:00
Родитель 02e4bfd46b
Коммит 174dc21055
1 изменённых файлов: 7 добавлений и 7 удалений

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

@ -1427,7 +1427,7 @@ nsComponentManagerImpl::GetClassObject(const nsCID &aClass, const nsIID &aIID,
char *buf = aClass.ToString(); char *buf = aClass.ToString();
PR_LogPrint("nsComponentManager: GetClassObject(%s)", buf); PR_LogPrint("nsComponentManager: GetClassObject(%s)", buf);
if (buf) if (buf)
PR_Free(buf); NS_Free(buf);
} }
#endif #endif
@ -1503,7 +1503,7 @@ nsComponentManagerImpl::ContractIDToClassID(const char *aContractID, nsCID *aCla
("nsComponentManager: ContractIDToClassID(%s)->%s", aContractID, ("nsComponentManager: ContractIDToClassID(%s)->%s", aContractID,
NS_SUCCEEDED(rv) ? buf : "[FAILED]")); NS_SUCCEEDED(rv) ? buf : "[FAILED]"));
if (buf) if (buf)
PR_Free(buf); NS_Free(buf);
} }
#endif #endif
return rv; return rv;
@ -1533,7 +1533,7 @@ nsComponentManagerImpl::CLSIDToContractID(const nsCID &aClass,
("nsComponentManager: CLSIDToContractID(%s)->%s", buf, ("nsComponentManager: CLSIDToContractID(%s)->%s", buf,
NS_SUCCEEDED(rv) ? *aContractID : "[FAILED]")); NS_SUCCEEDED(rv) ? *aContractID : "[FAILED]"));
if (buf) if (buf)
PR_Free(buf); NS_Free(buf);
} }
#endif #endif
return rv; return rv;
@ -1615,7 +1615,7 @@ nsComponentManagerImpl::CreateInstance(const nsCID &aClass,
("nsComponentManager: CreateInstance(%s) %s", buf, ("nsComponentManager: CreateInstance(%s) %s", buf,
NS_SUCCEEDED(rv) ? "succeeded" : "FAILED")); NS_SUCCEEDED(rv) ? "succeeded" : "FAILED"));
if (buf) if (buf)
PR_Free(buf); NS_Free(buf);
} }
#endif #endif
@ -2465,7 +2465,7 @@ nsComponentManagerImpl::RegisterFactory(const nsCID &aClass,
("nsComponentManager: RegisterFactory(%s, %s)", buf, ("nsComponentManager: RegisterFactory(%s, %s)", buf,
(aContractID ? aContractID : "(null)"))); (aContractID ? aContractID : "(null)")));
if (buf) if (buf)
PR_Free(buf); NS_Free(buf);
} }
#endif #endif
nsFactoryEntry *entry = nsnull; nsFactoryEntry *entry = nsnull;
@ -2630,7 +2630,7 @@ nsComponentManagerImpl::RegisterComponentCommon(const nsCID &aClass,
contractID ? contractID : "(null)", contractID ? contractID : "(null)",
aRegistryName, aType)); aRegistryName, aType));
if (buf) if (buf)
PR_Free(buf); NS_Free(buf);
} }
#endif #endif
if (entry && !aReplace) { if (entry && !aReplace) {
@ -2828,7 +2828,7 @@ nsComponentManagerImpl::UnregisterFactory(const nsCID &aClass,
PR_LOG(nsComponentManagerLog, PR_LOG_WARNING, PR_LOG(nsComponentManagerLog, PR_LOG_WARNING,
("nsComponentManager: UnregisterFactory(%s)", buf)); ("nsComponentManager: UnregisterFactory(%s)", buf));
if (buf) if (buf)
PR_Free(buf); NS_Free(buf);
} }
#endif #endif
nsFactoryEntry *old; nsFactoryEntry *old;