[PATCH 0/4] use g_autofree and g_autoptr