backend: Fix a couple of minor GError leaks

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2811>
This commit is contained in:
Jonas Ådahl 2023-01-27 15:34:38 +01:00
parent 81cc05e61e
commit c95a24f6e8
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,