### Function

# GLib ByteArray unref

since: 2.22

#### Declaration

    void
    g_byte_array_unref (
      GByteArray* array
    )

#### Description

Atomically decrements the reference count of `array` by one. If the reference count drops to 0, all memory allocated by the array is released. This function is thread-safe and may be called from any thread.

Available since: 2.22

#### Parameters

`array`

  Type: An array of `guint8`

  A `GByteArray`.

  The data is owned by the caller of the function.