---
title: CGColorRelease
framework: coregraphics
role: symbol
role_heading: Function
path: coregraphics/cgcolorrelease
---

# CGColorRelease

Decrements the retain count of a color.

## Declaration

```occ
extern void CGColorRelease(CGColorRef color);
```

## Parameters

- `color`: The color to release.

## Discussion

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

## See Also

### Retaining and Releasing Color Objects

- [CGColorRetain](coregraphics/cgcolorretain.md)
