---
title: DisposeTextToUnicodeInfo
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1433669-disposetexttounicodeinfo
---

# DisposeTextToUnicodeInfo

Releases the memory allocated for the specified Unicodeconverter object.

## Declaration

```occ
OSStatus DisposeTextToUnicodeInfo(TextToUnicodeInfo *ioTextToUnicodeInfo);
```

## Parameters

- `ioTextToUnicodeInfo`: A pointer to a Unicode converter object of type doc://com.apple.documentation/documentation/coreservices/texttounicodeinfo, used for converting text to Unicode. On input, you specify the object to dispose. It must be an object which your application created using the function doc://com.apple.documentation/documentation/coreservices/1433598-createtexttounicodeinfo or doc://com.apple.documentation/documentation/coreservices/1433560-createtexttounicodeinfobyencodin. You must not point to any other type of Unicode converter object. Your application should not use this function with the same structure more than once.

## Return Value

Return Value A resultcode. See Result Codes. If your application specifiesan invalid Unicode converter object, such as NULL,the function returns a paramErr resultcode.

## See Also

### Converting to Unicode

- [ChangeTextToUnicodeInfo](coreservices/1433487-changetexttounicodeinfo.md)
- [ConvertFromTextToUnicode](coreservices/1433517-convertfromtexttounicode.md)
- [CreateTextToUnicodeInfo](coreservices/1433598-createtexttounicodeinfo.md)
- [CreateTextToUnicodeInfoByEncoding](coreservices/1433560-createtexttounicodeinfobyencodin.md)
- [ResetTextToUnicodeInfo](coreservices/1433526-resettexttounicodeinfo.md)
