From: SukHyung, Kang Date: Mon, 15 Jul 2019 09:37:20 +0000 (+0900) Subject: Fix add item to group item error X-Git-Tag: accepted/tizen/unified/20190729.081023~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F210060%2F2;p=platform%2Fcore%2Fapi%2Fnotification.git Fix add item to group item error Change-Id: I97b55b81cf7299dd8a627e9ded3ad005f62f0d16 Signed-off-by: SukHyung, Kang --- diff --git a/notification-ex/stub.cc b/notification-ex/stub.cc index 8283e88..c7341a9 100644 --- a/notification-ex/stub.cc +++ b/notification-ex/stub.cc @@ -517,7 +517,7 @@ extern "C" EXPORT_API int noti_ex_item_checkbox_create(noti_ex_item_h *handle, return NOTI_EX_ERROR_OUT_OF_MEMORY; } - *handle = new Handle(p); + *handle = new Handle(shared_ptr(p)); return NOTI_EX_ERROR_NONE; } @@ -577,7 +577,7 @@ extern "C" EXPORT_API int noti_ex_item_entry_create(noti_ex_item_h *handle, return NOTI_EX_ERROR_OUT_OF_MEMORY; } - *handle = new Handle(p); + *handle = new Handle(shared_ptr(p)); return NOTI_EX_ERROR_NONE; } @@ -911,7 +911,7 @@ extern "C" EXPORT_API int noti_ex_item_input_selector_create( return NOTI_EX_ERROR_OUT_OF_MEMORY; } - *handle = new Handle(p); + *handle = new Handle(shared_ptr(p)); return NOTI_EX_ERROR_NONE; }