Fix add item to group item error 06/211906/1
authorSukHyung, Kang <shine.kang@samsung.com>
Mon, 15 Jul 2019 09:37:20 +0000 (18:37 +0900)
committerSukHyung Kang <shine.kang@samsung.com>
Mon, 12 Aug 2019 02:40:42 +0000 (02:40 +0000)
Change-Id: I97b55b81cf7299dd8a627e9ded3ad005f62f0d16
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
(cherry picked from commit 394c4ba408808655b5ae5f03172a9639df48a9fa)

notification-ex/stub.cc

index e5923c4959a60992461b1ec80c83a2668505a5a2..81aa45862e240f4d25425e26f699c3e9207deb5b 100644 (file)
@@ -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<AbstractItem>(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<AbstractItem>(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<AbstractItem>(p));
 
   return NOTI_EX_ERROR_NONE;
 }