From 77519bab1d1eec48121c465a8ba6a33666078c89 Mon Sep 17 00:00:00 2001 From: chleun-moon <32117100+chleun-moon@users.noreply.github.com> Date: Tue, 3 Nov 2020 10:01:48 +0900 Subject: [PATCH] [WiFi] Use cloned apHandle (#2155) --- .../Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs index 869a0ea..ee8afe0 100755 --- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs +++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs @@ -30,7 +30,9 @@ namespace Tizen.Network.WiFi internal ConnectionStateChangedEventArgs(WiFiConnectionState s, IntPtr apHandle) { _state = s; - _ap = new WiFiAP(apHandle); + IntPtr clonedHandle; + Interop.WiFi.AP.Clone(out clonedHandle, apHandle); + _ap = new WiFiAP(clonedHandle); } /// -- 2.7.4