Bug 788356 - Fix memory leak in evaluate(). JS shell only; this code is not part of the browser. r=Waldo.

This commit is contained in:
Jason Orendorff 2012-09-18 06:03:23 -05:00
Родитель 0788ac65de
Коммит 43946acc68
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -771,7 +771,7 @@ class AutoNewContext
suspension.destroy();
if (throwing)
JS_SetPendingException(oldcx, exc);
JS_DestroyContextNoGC(newcx);
DestroyContext(newcx, false);
}
}
};