From 63f420398b50221f780d7a1577ee7957a5070349 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Wed, 10 Aug 2022 11:25:03 -0700 Subject: [PATCH] Fixed memory leak --- microstack/ILibWrapperWebRTC.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/microstack/ILibWrapperWebRTC.c b/microstack/ILibWrapperWebRTC.c index 7806dff..9f933cf 100644 --- a/microstack/ILibWrapperWebRTC.c +++ b/microstack/ILibWrapperWebRTC.c @@ -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);