GLib.String.free_deep

### Method

# GLib Stringfree_deep

unstable since: 2.90

#### Declaration [src]

    void
    g_string_free_deep (
      GString* string
    )

#### Description [src]

Frees the memory allocated for the `GString` together with its character data.

This is equivalent to calling `g_string_free (string, TRUE)`, but it can be used with `g_clear_pointer()`:

    g_clear_pointer (&my_string, g_string_free_deep);

Available since: 2.90

#### Parameters

`string`

  Type: `GString`

  A string.

  The instance takes ownership of the data, and is responsible for freeing it.