---
title: "gss_release_buffer_set(_:_:)"
framework: GSS
role: symbol
role_heading: Function
platforms: [iOS 5.0+, iPadOS 5.0+, Mac Catalyst 13.1+, macOS 10.7+, visionOS 1.0+]
path: "gss/gss_release_buffer_set(_:_:)"
---

# gss_release_buffer_set(_:_:)

Frees the memory associated with a buffer set descriptor and all the buffers it contains.

## Declaration

```swift
func gss_release_buffer_set(_ minor_status: UnsafeMutablePointer<OM_uint32>, _ buffer_set: UnsafeMutablePointer<gss_buffer_set_t?>) -> OM_uint32
```

## Parameters

- `minor_status`: A pointer to the secondary status result that provides additional information in case of failure.
- `buffer_set`: A pointer to the buffer set descriptor reference that you want to free.

## Mentioned in

Allocating and Releasing Objects

## Return Value

Return Value A status code set to GSS_S_COMPLETE on completion.

## Discussion

Discussion This call frees the memory of all of the buffers that the buffer set contains, as well as the buffer set descriptor itself. Use this function when you’re done with a buffer set that you created with gss_create_empty_buffer_set(_:_:), or created on your behalf by gss_add_buffer_set_member(_:_:_:).

## See Also

### Allocation and Deallocation

- [gss_create_empty_buffer_set(_:_:)](gss/gss_create_empty_buffer_set(_:_:).md)
- [gss_add_buffer_set_member(_:_:_:)](gss/gss_add_buffer_set_member(_:_:_:).md)
- [gss_release_buffer(_:_:)](gss/gss_release_buffer(_:_:).md)
