---
title: CGDataProviderReleaseInfoCallback
framework: coregraphics
role: symbol
role_heading: Type Alias
path: coregraphics/cgdataproviderreleaseinfocallback
---

# CGDataProviderReleaseInfoCallback

A callback function that releases any private data or resources associated with the data provider.

## Declaration

```swift
typealias CGDataProviderReleaseInfoCallback = (UnsafeMutableRawPointer?) -> Void
```

## Parameters

- `info`: A generic pointer to private information shared among your callback functions. This is the same pointer you supplied to doc://com.apple.coregraphics/documentation/CoreGraphics/CGDataProviderSequentialCallbacks/init(version:getBytes:skipForward:rewind:releaseInfo:).

## Discussion

Discussion When Core Graphics frees a data provider that has an associated release function, the release function is called. For information on how to associate your callback function with a data provider, see CGDataProvider and CGDataProviderSequentialCallbacks.

## See Also

### Creating Sequential-Access Data Providers

- [init(sequentialInfo:callbacks:)](coregraphics/cgdataprovider/init(sequentialinfo:callbacks:).md)
- [CGDataProviderSequentialCallbacks](coregraphics/cgdataprovidersequentialcallbacks.md)
- [CGDataProviderRewindCallback](coregraphics/cgdataproviderrewindcallback.md)
- [CGDataProviderGetBytesCallback](coregraphics/cgdataprovidergetbytescallback.md)
- [CGDataProviderSkipForwardCallback](coregraphics/cgdataproviderskipforwardcallback.md)
