[PATCH] Use g_steal_pointer where possible