user: revert patch accidentally commited

commit 11c9bd62 tried to add
a g_autoptr but it inadvertently committed chunks of a patch
that's not reviewed yet from

!19

This commit reverts the erroneously added chunks.
1 job for master in 1 minute and 38 seconds (queued for 66 minutes and 20 seconds)
Status Job ID Name Coverage
  Test
passed #175494
build-fedora

00:01:38