Value.dupObject

Get the contents of a G_TYPE_OBJECT derived #GValue, increasing its reference count. If the contents of the #GValue are null, then null will be returned.

Returns

object content of value,

should be unreferenced when no longer needed.