---
title: "vImageDestroyResamplingFilter(_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vimagedestroyresamplingfilter(_:)"
---

# vImageDestroyResamplingFilter(_:)

Disposes of a resampling filter object.

## Declaration

```swift
func vImageDestroyResamplingFilter(_ filter: ResamplingFilter!)
```

## Parameters

- `filter`: The resampling filter object to dispose of.

## Discussion

Discussion This function deallocates the memory associated with a resampling filter object that was created by calling the function vImageNewResamplingFilter(_:_:). Don’t directly deallocate this memory yourself. Don’t pass this function a resampling filter object created by the function vImageNewResamplingFilterForFunctionUsingBuffer(_:_:_:_:_:_:). You’re responsible for deallocating the memory associated with resampling filter objects created by that call.

## See Also

### Resampling filters

- [vImageNewResamplingFilter(_:_:)](accelerate/vimagenewresamplingfilter(_:_:).md)
- [vImageNewResamplingFilterForFunctionUsingBuffer(_:_:_:_:_:_:)](accelerate/vimagenewresamplingfilterforfunctionusingbuffer(_:_:_:_:_:_:).md)
- [vImageGetResamplingFilterExtent(_:_:)](accelerate/vimagegetresamplingfilterextent(_:_:).md)
- [vImageGetResamplingFilterSize(_:_:_:_:)](accelerate/vimagegetresamplingfiltersize(_:_:_:_:).md)
