diff options
author | mk5004.lee <mk5004.lee@samsung.com> | 2019-12-16 11:38:34 +0900 |
---|---|---|
committer | mk5004.lee <mk5004.lee@samsung.com> | 2019-12-16 11:38:34 +0900 |
commit | 90c2ebf9efdc8e37438eb7c10efa1297c2076e93 (patch) | |
tree | 956321917fcdbe5444dee633ab7cad660cb1052f /notification-ex | |
parent | 60e9b9fa5c52c80a55106d8b9e11ebfe66ecdf6d (diff) | |
download | notification-90c2ebf9efdc8e37438eb7c10efa1297c2076e93.tar.gz notification-90c2ebf9efdc8e37438eb7c10efa1297c2076e93.tar.bz2 notification-90c2ebf9efdc8e37438eb7c10efa1297c2076e93.zip |
Fix memory leak
Change-Id: I87a84de5a2864c77e19e9a8aac0f9828997de35d
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
Diffstat (limited to 'notification-ex')
-rw-r--r-- | notification-ex/group_item.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/notification-ex/group_item.cc b/notification-ex/group_item.cc index 3407938..a222587 100644 --- a/notification-ex/group_item.cc +++ b/notification-ex/group_item.cc @@ -56,10 +56,12 @@ GroupItem::Impl::Impl(GroupItem* parent) LOGI("GroupItem created"); char* name; int ret = app_get_name(&name); - if (ret != APP_ERROR_NONE) + if (ret != APP_ERROR_NONE) { app_label_ = util::GetAppId(); - else + } else { app_label_ = string(name); + free(name); + } } GroupItem::~GroupItem() { |