Register libraries with the refcnt tracer

This commit is contained in:
kipp%netscape.com 1998-09-12 19:25:28 +00:00
parent f4c9611922
commit 78e46713a2
2 changed files with 10 additions and 0 deletions

View File

@ -234,6 +234,11 @@ nsresult nsRepository::loadFactory(FactoryEntry *aEntry,
aEntry->instance = PR_LoadLibrary(aEntry->library);
}
if (aEntry->instance != NULL) {
#ifdef MOZ_TRACE_XPCOM_REFCNT
// Inform refcnt tracer of new library so that calls through the
// new library can be traced.
nsTraceRefcnt::LoadLibrarySymbols(aEntry->library, aEntry->instance);
#endif
nsFactoryProc proc = (nsFactoryProc) PR_FindSymbol(aEntry->instance,
"NSGetFactory");
if (proc != NULL) {

View File

@ -234,6 +234,11 @@ nsresult nsRepository::loadFactory(FactoryEntry *aEntry,
aEntry->instance = PR_LoadLibrary(aEntry->library);
}
if (aEntry->instance != NULL) {
#ifdef MOZ_TRACE_XPCOM_REFCNT
// Inform refcnt tracer of new library so that calls through the
// new library can be traced.
nsTraceRefcnt::LoadLibrarySymbols(aEntry->library, aEntry->instance);
#endif
nsFactoryProc proc = (nsFactoryProc) PR_FindSymbol(aEntry->instance,
"NSGetFactory");
if (proc != NULL) {