mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 653936: fix: StartupCache uses nsZipItemPtr without ensuring that the JAR module is loaded, causes leak r=mwu
This commit is contained in:
parent
fafbf79d1a
commit
01ff9f67f2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user