projects
/
platform
/
core
/
api
/
singleo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84fe6f3
)
fix a memory leak bug
04/312904/4
author
Inki Dae
<inki.dae@samsung.com>
Mon, 17 Jun 2024 06:38:24 +0000
(15:38 +0900)
committer
Inki Dae
<inki.dae@samsung.com>
Wed, 19 Jun 2024 00:19:30 +0000
(09:19 +0900)
Just fix a memory leak bug by releasing singleo service context
when the service is destroyed.
Change-Id: I8b7856e34d8ff3d171656960d8aa6e6d7c9dac68
Signed-off-by: Inki Dae <inki.dae@samsung.com>
services/singleo_native_capi.cpp
patch
|
blob
|
history
diff --git
a/services/singleo_native_capi.cpp
b/services/singleo_native_capi.cpp
index 6774a0efaef4dd22774dc429fd965773e098b629..3c335aa0c74e19afa6147754ce5df96d89340b4b 100644
(file)
--- a/
services/singleo_native_capi.cpp
+++ b/
services/singleo_native_capi.cpp
@@
-65,6
+65,8
@@
int singleo_service_destroy(singleo_service_h handle)
if (context->_service_type == ServiceType::AUTO_ZOOM)
delete static_cast<IService *>(context->_service_handle);
+ delete context;
+
return SINGLEO_ERROR_NONE;
}