---
title: CTRunDelegateDeallocateCallback
framework: coretext
role: symbol
role_heading: Type Alias
path: coretext/ctrundelegatedeallocatecallback
---

# CTRunDelegateDeallocateCallback

Defines a pointer to a function that is invoked when a CTRunDelegate object is deallocated.

## Declaration

```swift
typealias CTRunDelegateDeallocateCallback = (UnsafeMutableRawPointer) -> Void
```

## Parameters

- `refCon`: The reference-constant value supplied to the doc://com.apple.coretext/documentation/CoreText/CTRunDelegateCreate(_:_:) function when the run delegate was created.

## Discussion

Discussion You would declare the deallocation function like this if you were to name it MyDeallocationCallback:

## See Also

### Callbacks

- [CTRunDelegateGetAscentCallback](coretext/ctrundelegategetascentcallback.md)
- [CTRunDelegateGetDescentCallback](coretext/ctrundelegategetdescentcallback.md)
- [CTRunDelegateGetWidthCallback](coretext/ctrundelegategetwidthcallback.md)
