From 1247399493451a8c885df2b178f4a205d5db827e Mon Sep 17 00:00:00 2001 From: Joonhaeng Heo Date: Tue, 11 Apr 2023 16:07:25 +0900 Subject: [PATCH] Modify delete -> memoryfree --- src/darwin/Framework/CHIP/MTRBaseDevice.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/darwin/Framework/CHIP/MTRBaseDevice.mm b/src/darwin/Framework/CHIP/MTRBaseDevice.mm index fdb0557b12fe95..d3a57eefe57180 100644 --- a/src/darwin/Framework/CHIP/MTRBaseDevice.mm +++ b/src/darwin/Framework/CHIP/MTRBaseDevice.mm @@ -145,11 +145,11 @@ static void PurgeReadClientContainers( asyncDispatchToMatterQueue:^() { for (MTRReadClientContainer * container in listToDelete) { if (container.readClientPtr) { - Platform::Delete(container.readClientPtr); + Platform::MemoryFree(container.readClientPtr); container.readClientPtr = nullptr; } if (container.pathParams) { - Platform::Delete(container.pathParams); + Platform::MemoryFree(container.pathParams); container.pathParams = nullptr; } } @@ -1254,11 +1254,11 @@ - (void)subscribeWithAttributePaths:(NSArray * _Nulla } Platform::Delete(readClient); if (container.pathParams != nullptr) { - Platform::Delete(container.pathParams); + Platform::MemoryFree(container.pathParams); } if (container.eventPathParams != nullptr) { - Platform::Delete(container.eventPathParams); + Platform::MemoryFree(container.eventPathParams); } container.pathParams = nullptr; container.eventPathParams = nullptr;