Bug 341872: Break the cyclic reference between the HelperApps object and the RDF datasource to avoid leaks when downloading a file and choosing 'open with', patch by Regis Caspar <regis.caspar+bz@gmail.com>, r=me

This commit is contained in:
gavin%gavinsharp.com 2007-01-09 06:20:52 +00:00
parent 24de37da87
commit 8e01a1d287
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@
<dialog id="unknownContentType"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="dialog.initDialog();" onunload="this.HelperApps = null; if (dialog) dialog.onCancel();"
onload="dialog.initDialog();" onunload="if (dialog) dialog.onCancel();"
onblur="if (dialog) dialog.onBlur(event);" onfocus="dialog.onFocus(event);"
style="width: 34em;"
screenX="" screenY=""

View File

@ -827,6 +827,7 @@ nsUnknownContentTypeDialog.prototype = {
updateHelperAppPref: function() {
var ha = new this.mDialog.HelperApps();
ha.updateTypeInfo(this.mLauncher.MIMEInfo);
ha.destroy();
},
// onOK: