protected override void Dispose(bool disposing) { if (disposing) { if (packer != null) { packer.Dispose(); packer = null; } if (unpacker != null) { unpacker.Dispose(); unpacker = null; } } base.Dispose(disposing); }
/// <summary> /// Disposes of resources allocated by the cabinet engine. /// </summary> /// <param name="disposing">If true, the method has been called directly /// or indirectly by a user's code, so managed and unmanaged resources /// will be disposed. If false, the method has been called by the runtime /// from inside the finalizer, and only unmanaged resources will be /// disposed.</param> protected override void Dispose(bool disposing) { if (disposing) { if (_packer != null) { _packer.Dispose(); _packer = null; } if (_unpacker != null) { _unpacker.Dispose(); _unpacker = null; } } base.Dispose(disposing); }