xwayland: use g_autoptr for GError in xserver_died
authorRay Strode <rstrode@redhat.com>
Thu, 12 Apr 2018 18:03:03 +0000 (13:03 -0500)
committerMarco Trevisan (Treviño) <marco@ubuntu.com>
Mon, 23 Apr 2018 15:46:57 +0000 (16:46 +0100)
commit52efab3e46581beb367bd4c925fac0dc2cf550ab
tree5ce3f8788165f33171f5be4d68367abe8e466e06
parentb94966d632b8476db33def9057233e0b44fc97c8
xwayland: use g_autoptr for GError in xserver_died

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.

Origin: https://gitlab.gnome.org/GNOME/mutter/commit/bb65854

Gbp-Pq: Name xwayland-use-g_autoptr-for-GError-in-xserver_died.patch
src/wayland/meta-xwayland.c