---
title: CGFunctionRelease
framework: coregraphics
role: symbol
role_heading: Function
path: coregraphics/cgfunctionrelease
---

# CGFunctionRelease

Decrements the retain count of a function object.

## Declaration

```occ
extern void CGFunctionRelease(CGFunctionRef function);
```

## Parameters

- `function`: The function object to release.

## Discussion

Discussion This function is equivalent to CFRelease, except that it does not cause an error if the function parameter is nil.

## See Also

### Retaining and Releasing CGFunction Objects

- [CGFunctionRetain](coregraphics/cgfunctionretain.md)
