### Method

# GLib VariantType copy

since: 2.24

#### Declaration

    GVariantType*
    g_variant_type_copy (
      const GVariantType* type
    )

#### Description

Makes a copy of a `GVariantType`. It is appropriate to call `g_variant_type_free()` on the return value. `type` may not be `NULL`.

Available since: 2.24

#### Return value

Type: `GVariantType`

A new `GVariantType`

Since 2.24

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