diff --git a/src/backends/meta-remote-desktop.c b/src/backends/meta-remote-desktop.c index f0a499818..0ad4d7508 100644 --- a/src/backends/meta-remote-desktop.c +++ b/src/backends/meta-remote-desktop.c @@ -208,7 +208,7 @@ on_bus_acquired (GDBusConnection *connection, MetaRemoteDesktop *remote_desktop = user_data; GDBusInterfaceSkeleton *interface_skeleton = G_DBUS_INTERFACE_SKELETON (remote_desktop); - GError *error = NULL; + g_autoptr (GError) error = NULL; if (!g_dbus_interface_skeleton_export (interface_skeleton, connection, diff --git a/src/backends/meta-screen-cast.c b/src/backends/meta-screen-cast.c index 119c8712f..d79bfc373 100644 --- a/src/backends/meta-screen-cast.c +++ b/src/backends/meta-screen-cast.c @@ -274,7 +274,7 @@ on_bus_acquired (GDBusConnection *connection, MetaScreenCast *screen_cast = user_data; GDBusInterfaceSkeleton *interface_skeleton = G_DBUS_INTERFACE_SKELETON (screen_cast); - GError *error = NULL; + g_autoptr (GError) error = NULL; if (!g_dbus_interface_skeleton_export (interface_skeleton, connection,