From c9c9139d9958f1a23a12ab398505046ee8ff2054 Mon Sep 17 00:00:00 2001 From: Daekwang Ryu Date: Tue, 24 Apr 2018 15:37:32 +0900 Subject: [PATCH] Revert "[Tizen] Fix to memory leak in clipboard-impl-ecore-wl" This reverts commit 1363b065dd914059f9b125d08e21ec7aa28b0917. Change-Id: I7492812fc1139d2fd1bc9d9e257793a112cd1540 --- .../tizen-wayland/ecore-wl2/clipboard-impl-ecore-wl2.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dali/internal/clipboard/tizen-wayland/ecore-wl2/clipboard-impl-ecore-wl2.cpp b/dali/internal/clipboard/tizen-wayland/ecore-wl2/clipboard-impl-ecore-wl2.cpp index 309a07a00..8bcf344d8 100644 --- a/dali/internal/clipboard/tizen-wayland/ecore-wl2/clipboard-impl-ecore-wl2.cpp +++ b/dali/internal/clipboard/tizen-wayland/ecore-wl2/clipboard-impl-ecore-wl2.cpp @@ -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; } -- 2.34.1