From: chleun.moon Date: Tue, 18 Jul 2017 06:34:09 +0000 (+0900) Subject: Remove destroy call in ReleaseHandle() X-Git-Tag: submit/trunk/20170823.075128~61^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5cdf29bcffa4d54dff19c9ec861e1394571a242;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Remove destroy call in ReleaseHandle() SafeWiFiAPHandle is used for WiFiNetwork and WiFiSecurity, which is created by WiFiAP. It has the same value as _apHandle in WiFiAP. Dispose() of WiFiAP releases unmanaged memory by calling WiFi.AP.Destroy(). Therefore, the handle to be released by WiFi.AP.Destroy() in ReleaseHandle() is already freed in unmanaged. Change-Id: I3a1efb0f5780123e6d8f3c5ffb70c2273df6ad86 Signed-off-by: cheoleun --- diff --git a/src/Tizen.Network.WiFi/Interop/Interop.WiFi.cs b/src/Tizen.Network.WiFi/Interop/Interop.WiFi.cs index bc2fd1d..3d01a60 100755 --- a/src/Tizen.Network.WiFi/Interop/Interop.WiFi.cs +++ b/src/Tizen.Network.WiFi/Interop/Interop.WiFi.cs @@ -289,7 +289,6 @@ internal static partial class Interop protected override bool ReleaseHandle() { - WiFi.AP.Destroy(this.handle); this.SetHandle(IntPtr.Zero); return true; }