mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Register libraries with the refcnt tracer
This commit is contained in:
parent
f4c9611922
commit
78e46713a2
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user