mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 902236 - Fix an exact rooting hazard in ~XPCShellEnvironment; r=jonco
This commit is contained in:
parent
556d73219c
commit
c507a824e5
@ -562,7 +562,7 @@ XPCShellEnvironment::~XPCShellEnvironment()
|
||||
{
|
||||
|
||||
AutoSafeJSContext cx;
|
||||
JSObject* global = GetGlobalObject();
|
||||
Rooted<JSObject*> global(cx, GetGlobalObject());
|
||||
if (global) {
|
||||
{
|
||||
JSAutoCompartment ac(cx, global);
|
||||
|
Loading…
Reference in New Issue
Block a user