<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGDataConsumerReleaseInfoCallback",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@T@CGDataConsumerReleaseInfoCallback"
  },
  "title" : "CGDataConsumerReleaseInfoCallback"
}
-->

# CGDataConsumerReleaseInfoCallback

Releases any private data or resources associated with the data consumer.

```
typealias CGDataConsumerReleaseInfoCallback = (UnsafeMutableRawPointer?) -> Void
```

## Parameters

`info`

A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to [`init(info:cbks:)`](/documentation/CoreGraphics/CGDataConsumer/init(info:cbks:)).

## Discussion

When Core Graphics frees a data consumer that has an associated release function, the release function is called.

For information on how to associate your callback function with a data consumer, see [`init(info:cbks:)`](/documentation/CoreGraphics/CGDataConsumer/init(info:cbks:)) and [`CGDataConsumerCallbacks`](/documentation/CoreGraphics/CGDataConsumerCallbacks).

---

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)