Safer?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3788 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
24116f498f
commit
0a580b60b1
@ -1223,9 +1223,10 @@ void tf_ssb_connection_destroy(tf_ssb_connection_t* connection)
|
|||||||
}
|
}
|
||||||
if (!JS_IsUndefined(connection->object))
|
if (!JS_IsUndefined(connection->object))
|
||||||
{
|
{
|
||||||
JS_SetOpaque(connection->object, NULL);
|
JSValue object = connection->object;
|
||||||
JS_FreeValue(ssb->context, connection->object);
|
|
||||||
connection->object = JS_UNDEFINED;
|
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))
|
if (connection->async.data && !uv_is_closing((uv_handle_t*)&connection->async))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user