Remove destroy call in ReleaseHandle()
authorchleun.moon <chleun.moon@samsung.com>
Tue, 18 Jul 2017 06:34:09 +0000 (15:34 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Tue, 18 Jul 2017 06:49:50 +0000 (15:49 +0900)
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 <chleun.moon@samsung.com>
src/Tizen.Network.WiFi/Interop/Interop.WiFi.cs

index bc2fd1d..3d01a60 100755 (executable)
@@ -289,7 +289,6 @@ internal static partial class Interop
 
             protected override bool ReleaseHandle()
             {
-                WiFi.AP.Destroy(this.handle);
                 this.SetHandle(IntPtr.Zero);
                 return true;
             }