Bug 653936: fix: StartupCache uses nsZipItemPtr without ensuring that the JAR module is loaded, causes leak r=mwu

This commit is contained in:
Taras Glek 2011-06-30 14:58:03 -07:00
parent fafbf79d1a
commit 01ff9f67f2

View File

@ -67,6 +67,7 @@
#include "mozilla/FunctionTimer.h"
#include "nsThreadUtils.h"
#include "nsXULAppAPI.h"
#include "nsIProtocolHandler.h"
#ifdef IS_BIG_ENDIAN
#define SC_ENDIAN "big"
@ -142,7 +143,9 @@ StartupCache::Init()
NS_WARNING("Startup cache is only available in the chrome process");
return NS_ERROR_NOT_AVAILABLE;
}
// workaround for bug 653936
nsCOMPtr<nsIProtocolHandler> jarInitializer(do_GetService(NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "jar"));
nsresult rv;
mTable.Init();
#ifdef DEBUG