Bug 902236 - Fix an exact rooting hazard in ~XPCShellEnvironment; r=jonco

This commit is contained in:
Terrence Cole 2013-08-07 16:14:20 -07:00
parent 556d73219c
commit c507a824e5

View File

@ -562,7 +562,7 @@ XPCShellEnvironment::~XPCShellEnvironment()
{
AutoSafeJSContext cx;
JSObject* global = GetGlobalObject();
Rooted<JSObject*> global(cx, GetGlobalObject());
if (global) {
{
JSAutoCompartment ac(cx, global);