From: SukHyung, Kang Date: Mon, 15 Jul 2019 09:37:20 +0000 (+0900) Subject: Fix add item to group item error X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c80bc951c732c9b936bd55c4da58eb82d416c17;p=platform%2Fcore%2Fapi%2Fnotification.git Fix add item to group item error Change-Id: I97b55b81cf7299dd8a627e9ded3ad005f62f0d16 Signed-off-by: SukHyung, Kang (cherry picked from commit 394c4ba408808655b5ae5f03172a9639df48a9fa) --- diff --git a/notification-ex/stub.cc b/notification-ex/stub.cc index e5923c49..81aa4586 100644 --- a/notification-ex/stub.cc +++ b/notification-ex/stub.cc @@ -518,7 +518,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; } @@ -578,7 +578,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; } @@ -912,7 +912,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; }