---
title: CGContextRelease
framework: coregraphics
role: symbol
role_heading: Function
path: coregraphics/cgcontextrelease
---

# CGContextRelease

Decrements the retain count of a graphics context.

## Declaration

```occ
extern void CGContextRelease(CGContextRef c);
```

## Parameters

- `c`: The graphics context to release.

## Discussion

Discussion This function is equivalent to CFRelease, except it does not cause an error if c is NULL.

## See Also

### Retaining and Releasing Graphics Contexts

- [CGContextRetain](coregraphics/cgcontextretain.md)
