From c95a24f6e8b3aa7af5ba34baa3402ed0cdf66ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 27 Jan 2023 15:34:38 +0100 Subject: [PATCH] backend: Fix a couple of minor GError leaks Part-of: --- src/backends/meta-remote-desktop.c | 2 +- src/backends/meta-screen-cast.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,