From e29de75912c8e6ed260b142f5a719c688a13ba97 Mon Sep 17 00:00:00 2001 From: zhuchaochao Date: Sat, 27 Jan 2024 01:30:19 +0000 Subject: [PATCH] fixed ad980c4 from https://gitee.com/ustczcc/multimedia_av_session/pulls/775 fix bug of mem leak Signed-off-by: zhuchaochao Change-Id: I52641ab98f5f265f907b678bf73049e9e36b63cd --- services/session/ipc/proxy/avsession_controller_proxy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/session/ipc/proxy/avsession_controller_proxy.cpp b/services/session/ipc/proxy/avsession_controller_proxy.cpp index f39fe511..e1c7e29b 100644 --- a/services/session/ipc/proxy/avsession_controller_proxy.cpp +++ b/services/session/ipc/proxy/avsession_controller_proxy.cpp @@ -103,6 +103,7 @@ int32_t AVSessionControllerProxy::GetAVPlaybackState(AVPlaybackState& state) std::lock_guard lockGuard(currentStateLock_); currentState_ = *statePtr; + delete statePtr; } return ret; } -- Gitee