forked from cory/tildefriends
All the leaks.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3919 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -54,6 +54,7 @@ static void _tf_ssb_import_add_app(tf_ssb_t* ssb, const char* user, const char*
|
||||
int32_t length = 0;
|
||||
JSValue lengthval = JS_GetPropertyStr(context, apps, "length");
|
||||
JS_ToInt32(context, &length, lengthval);
|
||||
JS_FreeValue(context, lengthval);
|
||||
JS_SetPropertyUint32(context, apps, length, JS_NewString(context, app));
|
||||
|
||||
JSValue json = JS_JSONStringify(context, apps, JS_NULL, JS_NULL);
|
||||
|
Reference in New Issue
Block a user