Revert "[Tizen] Fix to memory leak in clipboard-impl-ecore-wl" 88/175188/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Mon, 9 Apr 2018 07:49:00 +0000 (16:49 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Mon, 9 Apr 2018 07:50:26 +0000 (16:50 +0900)
This reverts commit 8eafa3ff9b3a1cadc3e00d41fa2cacf0f1db0dce.

Change-Id: I56b24f825b5544c0dfbefcc288ffdc3bde8c7c60
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali/internal/clipboard/tizen-wayland/ecore-wl/clipboard-impl-ecore-wl.cpp
dali/internal/clipboard/tizen-wayland/ecore-wl2/clipboard-impl-ecore-wl2.cpp

index 821a730..4580e66 100644 (file)
@@ -162,10 +162,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;
     }
 
@@ -173,12 +169,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;
   }
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;
   }