Example #1
0
 /// <summary>
 /// Called when [dispose].
 /// </summary>
 /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
 protected override void OnDispose(bool disposing)
 {
     if (_pFileHandleProxy != IntPtr.Zero)
     {
         GribApiNative.DestroyFileHandleProxy(_pFileHandleProxy);
     }
 }
Example #2
0
        /// <summary>
        /// Called when [dispose].
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
        protected override void OnDispose(bool disposing)
        {
            if (this._nearest != null)
            {
                this._nearest.Dispose();
            }

            if (_pFileHandleProxy != IntPtr.Zero)
            {
                GribApiNative.DestroyFileHandleProxy(_pFileHandleProxy);
            }
        }