Remove destroy call in ReleaseHandle() 67/139267/3 accepted/tizen/unified/20170724.020307 submit/tizen/20170721.064234
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>
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;
             }