mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-07 02:53:58 +00:00
Fixed potential crash in WebRTC finalizer
This commit is contained in:
@@ -226,7 +226,7 @@ duk_ret_t ILibDuktape_WebRTC_ConnectionFactory_Finalizer(duk_context *ctx)
|
||||
|
||||
//printf("WebRTC Factory Finalizer: %p\n", factory);
|
||||
|
||||
if (factory != NULL && ILibIsChainBeingDestroyed(chain) == 0)
|
||||
if (factory != NULL && chain != NULL && ILibIsChainBeingDestroyed(chain) == 0)
|
||||
{
|
||||
ILibWrapper_WebRTC_ConnectionFactory_RemoveFromChain(factory);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user