Bug 858108 - GC: Root the Locale interface r=terrence r=bholley

This commit is contained in:
Jon Coppeard
2013-04-05 10:45:50 +01:00
parent 81c689343e
commit da20dd0f74
5 changed files with 27 additions and 32 deletions

View File

@@ -2762,7 +2762,7 @@ ToLocaleFormatHelper(JSContext *cx, HandleObject obj, const char *format, Mutabl
}
if (cx->runtime->localeCallbacks && cx->runtime->localeCallbacks->localeToUnicode)
return cx->runtime->localeCallbacks->localeToUnicode(cx, buf, rval.address());
return cx->runtime->localeCallbacks->localeToUnicode(cx, buf, rval);
RawString str = JS_NewStringCopyZ(cx, buf);
if (!str)