---
title: CGPatternRelease
framework: coregraphics
role: symbol
role_heading: Function
path: coregraphics/cgpatternrelease
---

# CGPatternRelease

Decrements the retain count of a Core Graphics pattern.

## Declaration

```occ
extern void CGPatternRelease(CGPatternRef pattern);
```

## Parameters

- `pattern`: The pattern to release.

## Discussion

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

## See Also

### Retaining and Releasing a Pattern

- [CGPatternRetain](coregraphics/cgpatternretain.md)
