I think that's all the leaks accounted for though not yet fixed.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4799 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2024-01-27 15:45:51 +00:00
parent 08b5ade8ec
commit 923d6f9835
7 changed files with 22 additions and 16 deletions

View File

@ -292,6 +292,7 @@ static JSValue _util_setTimeout(JSContext* context, JSValueConst this_val, int a
JS_ToInt64(context, &duration, argv[1]);
if (uv_timer_start(&timeout->_timer, _util_timeoutCallback, duration, 0) != 0)
{
JS_FreeValue(context, timeout->_callback);
tf_free(timeout);
}
return JS_NULL;