---
title: CMEndMatching
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/colorsync_manager/1805220-cmendmatching
---

# CMEndMatching

Concludes a QuickDraw-specific ColorSync matching session initiated by a previous call to the `NCMBeginMatching` function. 

## Declaration

```occ
void CMEndMatching (
   CMMatchRef myRef
);
```

## Parameters

- `myRef`: A reference to the matching session to end. This reference was previously created and returned by a call to `NCMBeginMatching` function. See the QuickDraw Reference for a description of the PixMap data type.

## Overview

The `CMEndMatching` function releases private memory allocated for the QuickDraw-specific matching session. 

After you call the `NCMBeginMatching` function and before you call `CMEndMatching` to end the matching session, embedded color-matching picture comments, such as `cmEnableMatching` and `cmDisableMatching`, are not acknowledged. 

## See Also

### Working With QuickDraw

- [CWMatchPixMap](1805211-cwmatchpixmap.md)
- [CWCheckPixMap](1805214-cwcheckpixmap.md)
- [NCMBeginMatching](1805216-ncmbeginmatching.md)
- [NCMDrawMatchedPicture](1805223-ncmdrawmatchedpicture.md)
- [CMEnableMatchingComment](1805227-cmenablematchingcomment.md)
- [NCMUseProfileComment](1805229-ncmuseprofilecomment.md)
