mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 450641 - Add missing JS_free call.
This commit is contained in:
parent
9f7d261303
commit
e0872c3629
@ -2329,6 +2329,7 @@ js_str_fromCharCode(JSContext *cx, uintN argc, jsval *vp)
|
||||
return JS_FALSE;
|
||||
if (argc == 1 &&
|
||||
(code = js_ValueToUint16(cx, &argv[0])) < UNIT_STRING_LIMIT) {
|
||||
JS_free(cx, chars);
|
||||
str = js_GetUnitStringForChar(cx, code);
|
||||
if (!str)
|
||||
return JS_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user