<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTRAWProcessingSessionInvalidate",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@F@VTRAWProcessingSessionInvalidate"
  },
  "title" : "VTRAWProcessingSessionInvalidate"
}
-->

# VTRAWProcessingSessionInvalidate

Tears down a RAW processing session.

```
extern void VTRAWProcessingSessionInvalidate(VTRAWProcessingSessionRef session);
```

## Discussion

When you are done with a RAW processing session you created, call this function to tear it down and then `CFRelease` to release your object reference. When a  session’s retain count reaches zero, it is automatically invalidated, but since sessions may be retained by multiple parties, it can be hard to predict when this will happen.

Calling this function ensures a deterministic, orderly teardown.

---

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)