mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-29 06:33:22 +00:00
Fixed memory leak
This commit is contained in:
@@ -516,6 +516,9 @@ void ILibWrapper_WebRTC_Connection_DestroyConnectionEx(ILibSparseArray sender, i
|
||||
UNREFERENCED_PARAMETER(index);
|
||||
UNREFERENCED_PARAMETER(sender);
|
||||
|
||||
ILibMemory_Free(dc->Header.transport.ChainLink.MetaData);
|
||||
dc->Header.transport.ChainLink.MetaData = NULL;
|
||||
|
||||
if(dc->OnClosed!=NULL) {dc->OnClosed(dc);}
|
||||
free(dc->channelName);
|
||||
free(dc);
|
||||
|
||||
Reference in New Issue
Block a user