(IntPtr ptr)
| 337 | } |
| 338 | |
| 339 | [System.Diagnostics.DebuggerStepThrough] |
| 340 | public static void Free(IntPtr ptr) |
| 341 | { |
| 342 | if (ptr == IntPtr.Zero) |
| 343 | return; |
| 344 | ManagedHandle handle = ManagedHandle.FromIntPtr(ptr); |
| 345 | if (handle == EmptyStringHandle) |
| 346 | return; |
| 347 | handle.Free(); |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | /// <summary> |
nothing calls this directly
no test coverage detected