---
title: CGColorSpaceRelease
framework: coregraphics
role: symbol
role_heading: Function
path: coregraphics/cgcolorspacerelease
---

# CGColorSpaceRelease

Decrements the retain count of a color space.

## Declaration

```occ
extern void CGColorSpaceRelease(CGColorSpaceRef space);
```

## Parameters

- `space`: The Quartz color space to release.

## Discussion

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

## See Also

### Retaining and Releasing Color Spaces

- [CGColorSpaceRetain](coregraphics/cgcolorspaceretain.md)
