Further bustage fixing

This commit is contained in:
Jeff Walden 2010-03-09 17:44:16 -08:00
parent ace03add6c
commit c67d68c20e

View File

@ -5235,7 +5235,8 @@ js_SaveAndClearRegExpStatics(JSContext *cx, JSRegExpStatics *statics,
AutoValueRooter *tvr)
{
*statics = cx->regExpStatics;
tvr->setString(statics->input);
if (statics->input)
tvr->setString(statics->input);
/*
* Prevent JS_ClearRegExpStatics from freeing moreParens, since we've only
* moved it elsewhere (into statics->moreParens).