1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-29 06:33:22 +00:00

Fixed memory leak

This commit is contained in:
Bryan Roe
2022-08-10 11:25:03 -07:00
parent 80b14d0163
commit 63f420398b

View File

@@ -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);