Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug 653936: fix: StartupCache uses nsZipItemPtr without ensuring that…

… the JAR module is loaded, causes leak r=mwu
  • Loading branch information...
commit 392e63bd3ec2e652f21ae75eea0330aef8c84190 1 parent e52abee
authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  startupcache/StartupCache.cpp
5  startupcache/StartupCache.cpp
@@ -67,6 +67,7 @@
67 67
 #include "mozilla/FunctionTimer.h"
68 68
 #include "nsThreadUtils.h"
69 69
 #include "nsXULAppAPI.h"
  70
+#include "nsIProtocolHandler.h"
70 71
 
71 72
 #ifdef IS_BIG_ENDIAN
72 73
 #define SC_ENDIAN "big"
@@ -142,7 +143,9 @@ StartupCache::Init()
142 143
     NS_WARNING("Startup cache is only available in the chrome process");
143 144
     return NS_ERROR_NOT_AVAILABLE;
144 145
   }
145  
-
  146
+  // workaround for bug 653936
  147
+  nsCOMPtr<nsIProtocolHandler> jarInitializer(do_GetService(NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "jar"));
  148
+  
146 149
   nsresult rv;
147 150
   mTable.Init();
148 151
 #ifdef DEBUG

0 notes on commit 392e63b

Please sign in to comment.
Something went wrong with that request. Please try again.