99d766c044ab5286af0d40c5350a1fb28f9bcb0b

Right now we explicitly g_clear_error any error we find, but that
makes it tricky to return early from the function, which a
subsequent commit will want to to do.
This commit switches GError to use g_autoptr so the error clearing
happens automatically.
(cherry picked from commit bb65854065
)
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%