[PATCH v2 0/6] use g_autofree and g_autoptr