[PATCH v2 4/6] Use g_steal_pointer where possible