private void ReleaseUnmanagedResources() { if (mPartition != null) { mPartition.Dispose(); } if (mLogicalDevice != null) { mLogicalDevice.Dispose(); } }