---
title: CWDisposeColorWorld
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/colorsync_manager/1805102-cwdisposecolorworld
---

# CWDisposeColorWorld

Releases the private storage associated with a color world when your application has finished using the color world. 

## Declaration

```occ
void CWDisposeColorWorld (
   CMWorldRef cw
);
```

## Parameters

- `cw`: A color world reference of type [doc://com.apple.documentation/documentation/applicationservices/cmworldref](applicationservices/cmworldref.md). 
 The function [doc://com.apple.documentation/documentation/applicationservices/colorsync_manager/1805079-ncwnewcolorworld](applicationservices/colorsync_manager/1805079-ncwnewcolorworld.md) and the function [doc://com.apple.documentation/documentation/applicationservices/colorsync_manager/1805087-cwconcatcolorworld](applicationservices/colorsync_manager/1805087-cwconcatcolorworld.md) both allocate color world references of type [doc://com.apple.documentation/documentation/applicationservices/cmworldref](applicationservices/cmworldref.md).

## Overview

The following functions use color worlds. If you create a color world to pass to one of these functions, you must dispose of the color world when your application is finished with it.

- [CWMatchColors](1805108-cwmatchcolors.md)
- [CWCheckColors](1805111-cwcheckcolors.md)
- [CWMatchBitmap](1805116-cwmatchbitmap.md)
- [CWCheckBitmap](1805121-cwcheckbitmap.md)
- [CWMatchPixMap](1805211-cwmatchpixmap.md)
- [CWCheckPixMap](1805214-cwcheckpixmap.md)

## See Also

### Working With ColorWorlds

- [NCWNewColorWorld](1805079-ncwnewcolorworld.md)
- [CWConcatColorWorld](1805087-cwconcatcolorworld.md)
- [NCWConcatColorWorld](1805091-ncwconcatcolorworld.md)
- [CMGetCWInfo](1805097-cmgetcwinfo.md)
- [CWMatchColors](1805108-cwmatchcolors.md)
- [CWCheckColors](1805111-cwcheckcolors.md)
- [CWMatchBitmap](1805116-cwmatchbitmap.md)
- [CWCheckBitmap](1805121-cwcheckbitmap.md)
- [CWFillLookupTexture](1805126-cwfilllookuptexture.md)
