flatpak: Fix several double-uses of GErrors

If a GError defined in a wider scope is used in a loop, even if defined
using `g_autoptr()`, it needs to be freed before the next loop
iteration.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
1 job for flatpak-gerror-fix in 22 minutes and 12 seconds
Status Job ID Name Coverage
  Build
passed #300020
build-gnome-software

00:22:12