Change return value of items to get chat message information 94/204594/4
authorSukHyung, Kang <shine.kang@samsung.com>
Wed, 24 Apr 2019 23:31:32 +0000 (08:31 +0900)
committerSukHyung, Kang <shine.kang@samsung.com>
Thu, 25 Apr 2019 01:07:52 +0000 (10:07 +0900)
Change-Id: I4391a9f846a10c9ec607aa80214b21651e6f4696
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
notification-ex/stub.cc

index 579d421..f4ff5b8 100644 (file)
@@ -847,7 +847,7 @@ extern "C" EXPORT_API int noti_ex_item_image_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;
 }
@@ -2424,7 +2424,7 @@ extern "C" EXPORT_API int noti_ex_item_text_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;
 }
@@ -2518,7 +2518,7 @@ extern "C" EXPORT_API int noti_ex_item_time_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;
 }