forked from cory/tildefriends
More memory leaks.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4179 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
980db880cc
commit
1741403206
@ -515,6 +515,7 @@ static void _tf_ssb_sqlAsync_after_work(uv_work_t* work, int status)
|
|||||||
|
|
||||||
JSValue result = JS_Call(context, sql_work->promise[0], JS_UNDEFINED, 0, NULL);
|
JSValue result = JS_Call(context, sql_work->promise[0], JS_UNDEFINED, 0, NULL);
|
||||||
tf_util_report_error(context, result);
|
tf_util_report_error(context, result);
|
||||||
|
JS_FreeValue(context, result);
|
||||||
JS_FreeValue(context, sql_work->promise[0]);
|
JS_FreeValue(context, sql_work->promise[0]);
|
||||||
JS_FreeValue(context, sql_work->promise[1]);
|
JS_FreeValue(context, sql_work->promise[1]);
|
||||||
JS_FreeValue(context, sql_work->callback);
|
JS_FreeValue(context, sql_work->callback);
|
||||||
@ -591,6 +592,7 @@ static JSValue _tf_ssb_sqlAsync(JSContext* context, JSValueConst this_val, int a
|
|||||||
{
|
{
|
||||||
JSValue call_result = JS_Call(context, work->promise[1], JS_UNDEFINED, 1, &error_value);
|
JSValue call_result = JS_Call(context, work->promise[1], JS_UNDEFINED, 1, &error_value);
|
||||||
tf_util_report_error(context, call_result);
|
tf_util_report_error(context, call_result);
|
||||||
|
JS_FreeValue(context, call_result);
|
||||||
JS_FreeValue(context, work->promise[0]);
|
JS_FreeValue(context, work->promise[0]);
|
||||||
JS_FreeValue(context, work->promise[1]);
|
JS_FreeValue(context, work->promise[1]);
|
||||||
JS_FreeValue(context, work->callback);
|
JS_FreeValue(context, work->callback);
|
||||||
|
Loading…
Reference in New Issue
Block a user