/// <summary> /// Releases the memory used by the sites information. /// </summary> public void Dispose() { i3d_ping_sites_getter_destroy(_ptr); lock (SitesGetter) { SitesGetter.Remove(_ptr); } }
private void OnDisable() { if (_wrapper != null) { _wrapper.Dispose(); _wrapper = null; } lock (SitesGetter) { SitesGetter.Remove(_ptr); } }