Fix add item to group item error 60/210060/2
authorSukHyung, Kang <shine.kang@samsung.com>
Mon, 15 Jul 2019 09:37:20 +0000 (18:37 +0900)
committerSukHyung, Kang <shine.kang@samsung.com>
Tue, 16 Jul 2019 01:34:48 +0000 (10:34 +0900)
Change-Id: I97b55b81cf7299dd8a627e9ded3ad005f62f0d16
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
notification-ex/stub.cc

index 8283e88..c7341a9 100644 (file)
@@ -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<AbstractItem>(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<AbstractItem>(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<AbstractItem>(p));
 
   return NOTI_EX_ERROR_NONE;
 }