From: Hwankyu Jhun Date: Wed, 21 Feb 2024 02:06:32 +0000 (+0900) Subject: Fix memory leak X-Git-Tag: accepted/tizen/8.0/unified/20250206.155756~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86ebddf5913ec6aa00b19a693369b2572ea266c5;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);