Fix a test leak.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3922 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-07-09 14:33:38 +00:00
parent fb3ad0d95d
commit 7f9c01a9bb
2 changed files with 7 additions and 2 deletions

View File

@ -253,6 +253,7 @@ static void _taskstub_cleanup(tf_taskstub_t* stub)
static void _taskstub_finalizer(JSRuntime* runtime, JSValue value)
{
tf_taskstub_t* stub = JS_GetOpaque(value, _classId);
stub->_object = JS_UNDEFINED;
JSContext* context = tf_task_get_context(stub->_owner);
if (!JS_IsUndefined(stub->_on_exit))
{