X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fecore%2Fwayland%2Fclipboard-impl-ecore-wl.cpp;h=68a10e5f14ce1c12a76af3a99f4ced2f5585744c;hb=4c6443759f21f09346951b4561675292351557d0;hp=0839ca2ee3379c289ea32b01fb97b0dd2a826bed;hpb=d7ca90ac78eba7dbfda2cd758d445c8ed9f0239c;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/ecore/wayland/clipboard-impl-ecore-wl.cpp b/adaptors/ecore/wayland/clipboard-impl-ecore-wl.cpp index 0839ca2..68a10e5 100644 --- a/adaptors/ecore/wayland/clipboard-impl-ecore-wl.cpp +++ b/adaptors/ecore/wayland/clipboard-impl-ecore-wl.cpp @@ -162,6 +162,10 @@ 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; } @@ -169,10 +173,12 @@ 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; }