---
title: CFMakeCollectable
framework: corefoundation
role: symbol
role_heading: Function
path: corefoundation/cfmakecollectable
---

# CFMakeCollectable

Makes a newly-allocated Core Foundation object eligible for garbage collection.

## Declaration

```occ
extern CFTypeRefCFMakeCollectable(CFTypeRef cf);
```

## Parameters

- `cf`: A CFType object to make collectable. This value must not be NULL.

## Return Value

Return Value cf.

## Discussion

Discussion For more details, see Garbage Collection Programming Guide. Special Considerations If cf is NULL, this will cause a runtime error and your application will crash.

## See Also

### Memory Management

- [CFGetAllocator(_:)](corefoundation/cfgetallocator(_:).md)
- [CFGetRetainCount(_:)](corefoundation/cfgetretaincount(_:).md)
- [CFRelease](corefoundation/cfrelease.md)
- [CFRetain](corefoundation/cfretain.md)
