Revert "[3.0] Implement wayland clipboard"
[platform/core/uifw/dali-adaptor.git] / adaptors / ecore / wayland / clipboard-impl-ecore-wl.cpp
index 513ec21..a55508a 100644 (file)
@@ -53,6 +53,12 @@ struct Clipboard::Impl
 
   void SetItem(const char *data)
   {
+    char *temp = NULL;
+
+    if (bundle_get_str(mBundle, CLIPBOARD_STR, &temp) == BUNDLE_ERROR_NONE)
+    {
+      bundle_del(mBundle, CLIPBOARD_STR);
+    }
     bundle_add_str(mBundle, CLIPBOARD_STR, data);
   }