mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 732308 - fix potential leak in xpcshell/head.js (r=jmaher)
This commit is contained in:
parent
7ab87937cc
commit
55d77bd4a6
@ -778,6 +778,13 @@ function do_get_profile() {
|
||||
};
|
||||
dirSvc.QueryInterface(Components.interfaces.nsIDirectoryService)
|
||||
.registerProvider(provider);
|
||||
|
||||
// The methods of 'provider' will entrain this scope so null out everything
|
||||
// to avoid spurious leak reports.
|
||||
env = null;
|
||||
profd = null;
|
||||
dirSvc = null;
|
||||
provider = null;
|
||||
return file.clone();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user