From: Hwankyu Jhun Date: Wed, 12 Oct 2022 06:41:39 +0000 (+0000) Subject: Release the client handle X-Git-Tag: accepted/tizen/unified/20221104.082313~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3ad5d660c267deb2276dc43d8a95bb5ed0cfcc6;p=platform%2Fcore%2Fappfw%2Frpc-port.git Release the client handle When the client application calls the rpc_port_proxy_connect() function after the diconnected event is received, the main_client_ and the delegate_client_ handles have to be released. Change-Id: I2aeef18323bc9f438b048cfef42fb9dd1c82f62e Signed-off-by: Hwankyu Jhun --- diff --git a/src/proxy-internal.cc b/src/proxy-internal.cc index 8ddb569..7816276 100644 --- a/src/proxy-internal.cc +++ b/src/proxy-internal.cc @@ -206,6 +206,8 @@ int Proxy::Connect(std::string appid, std::string port_name, target_appid_ = std::move(appid); port_name_ = std::move(port_name); SetRealAppId(target_appid_); + main_port_.reset(); + delegate_port_.reset(); UnsetConnTimer(); int ret = Aul::PrepareStub(real_appid_, port_name_,