From: Hwankyu Jhun Date: Wed, 21 Feb 2024 02:06:32 +0000 (+0900) Subject: Fix memory leak X-Git-Tag: accepted/tizen/unified/20240222.163358~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad30b530093a90ff29d6f041892767d5cf7c514f;p=platform%2Fcore%2Fappfw%2Fapp-core.git Fix memory leak The svc_info handle must be released using aul_svc_info_destroy(). Change-Id: I66da7c2f777ebfcc574e59cb54557f79bdb3311d Signed-off-by: Hwankyu Jhun --- diff --git a/tizen-cpp/app-core-cpp/app_control_manager_private.cc b/tizen-cpp/app-core-cpp/app_control_manager_private.cc index 190b7bf..bf43e49 100644 --- a/tizen-cpp/app-core-cpp/app_control_manager_private.cc +++ b/tizen-cpp/app-core-cpp/app_control_manager_private.cc @@ -162,6 +162,7 @@ class Manager { .SetMime(svc_info) .SetMimeType(svc_info) .SetMimeSubtype(svc_info).Build(); + aul_svc_info_destroy(svc_info); if (info == nullptr) return nullptr; return std::shared_ptr(info);