protected override void OnDispose(bool disposing) { if (this.pReference != IntPtr.Zero) { GribApiProxy.GribNearestDelete(Nearest); this.Nearest = null; this.Handle = null; } }