git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3788 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-01-23 12:52:55 +00:00
parent 24116f498f
commit 0a580b60b1

View File

@ -1223,9 +1223,10 @@ void tf_ssb_connection_destroy(tf_ssb_connection_t* connection)
}
if (!JS_IsUndefined(connection->object))
{
JS_SetOpaque(connection->object, NULL);
JS_FreeValue(ssb->context, connection->object);
JSValue object = connection->object;
connection->object = JS_UNDEFINED;
JS_SetOpaque(object, NULL);
JS_FreeValue(ssb->context, object);
}
if (connection->async.data && !uv_is_closing((uv_handle_t*)&connection->async))
{