[Pkg-mozext-commits] [adblock-plus] 250/464: Alleviate the effects of memory leaks on mid-session extension shutdown

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit e72a3576fd82995bc12141eab7480e398f4ee845
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Jun 22 23:17:53 2012 +0200

    Alleviate the effects of memory leaks on mid-session extension shutdown
---
 bootstrap.js.tmpl | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bootstrap.js.tmpl b/bootstrap.js.tmpl
index b9a32e2..8c044d4 100644
--- a/bootstrap.js.tmpl
+++ b/bootstrap.js.tmpl
@@ -67,7 +67,13 @@ function shutdown(params, reason)
       Cu.reportError(e);
     }
   }
+  shutdownHandlers = null;
   {%- endif %}
+
+  // Make sure to release our ties to the modules even if the sandbox cannot be
+  // released for some reason.
+  require.scopes = null;
+  addonData = null;
 }
 
 function install(params, reason) {}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list