Revert "[Tizen] Fix to memory leak in clipboard-impl-ecore-wl" 87/175987/1
authorSeungho, Baek <sbsh.baek@samsung.com>
Mon, 16 Apr 2018 05:46:19 +0000 (14:46 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Mon, 16 Apr 2018 05:46:42 +0000 (14:46 +0900)
This reverts commit 80a217002ee1e5974edfa6ac3e8855dfad4833cf.

Change-Id: I5a82aa018f691be86574ee6f0fa6a8f5e1d5fcd4

dali/internal/clipboard/tizen-wayland/ecore-wl2/clipboard-impl-ecore-wl2.cpp

index 309a07a..8bcf344 100644 (file)
@@ -160,10 +160,6 @@ struct Clipboard::Impl
       DALI_LOG_ERROR("Unable to call method org.freedesktop.DBus.Properties.Get: %s %s",
       errname, errmsg);
       eldbus_message_unref(req);
-      if( reply )
-      {
-        eldbus_message_unref(reply);
-      }
       return -1;
     }
 
@@ -171,12 +167,10 @@ struct Clipboard::Impl
     {
       DALI_LOG_ERROR("Cannot get arguments from eldbus");
       eldbus_message_unref(req);
-      eldbus_message_unref(reply);
       return -1;
     }
 
     eldbus_message_unref(req);
-    eldbus_message_unref(reply);
     DALI_LOG_ERROR("cbhm item count(%d)", count);
     return count;
   }