<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.3.0 -",
    "tvOS: 5.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageDestroyResamplingFilter(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vImageDestroyResamplingFilter"
  },
  "title" : "vImageDestroyResamplingFilter(_:)"
}
-->

# vImageDestroyResamplingFilter(_:)

Disposes of a resampling filter object.

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

## Parameters

`filter`

The resampling filter object to dispose of.

## Discussion

This function deallocates the memory associated with a resampling filter object that was created by calling the function [`vImageNewResamplingFilter(_:_:)`](/documentation/Accelerate/vImageNewResamplingFilter(_:_:)). Don’t directly deallocate this memory yourself.

Don’t pass this function a resampling filter object created by the function [`vImageNewResamplingFilterForFunctionUsingBuffer(_:_:_:_:_:_:)`](/documentation/Accelerate/vImageNewResamplingFilterForFunctionUsingBuffer(_:_:_:_:_:_:)). You’re responsible for deallocating the memory associated with resampling filter objects created by that call.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)