From 5268ef92efaeaddfcbb3a8b2f2e41506bfac5571 Mon Sep 17 00:00:00 2001 From: "rayw%netscape.com" Date: Fri, 18 Aug 2000 20:54:04 +0000 Subject: [PATCH] A fix to bug 43351. A softer landing on a failed initialization. It checks for a null before deallocating. This does not affect the success path. This was a patch, and I reviewed it: (r=rayw) git-svn-id: svn://10.0.0.236/trunk@76651 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/components/nsNativeComponentLoader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/xpcom/components/nsNativeComponentLoader.cpp b/mozilla/xpcom/components/nsNativeComponentLoader.cpp index fcc1af30376..8a125de8f48 100644 --- a/mozilla/xpcom/components/nsNativeComponentLoader.cpp +++ b/mozilla/xpcom/components/nsNativeComponentLoader.cpp @@ -983,7 +983,9 @@ nsNativeComponentLoader::UnloadAll(PRInt32 aWhen) callData.when = aWhen; // Cycle through the dlls checking to see if they want to be unloaded - mDllStore->Enumerate(nsFreeLibraryEnum, &callData); + if (mDllStore) { + mDllStore->Enumerate(nsFreeLibraryEnum, &callData); + } return NS_OK; }