backend: Fix a couple of minor GError leaks
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2811>
This commit is contained in:
parent
81cc05e61e
commit
c95a24f6e8
@ -208,7 +208,7 @@ on_bus_acquired (GDBusConnection *connection,
|
|||||||
MetaRemoteDesktop *remote_desktop = user_data;
|
MetaRemoteDesktop *remote_desktop = user_data;
|
||||||
GDBusInterfaceSkeleton *interface_skeleton =
|
GDBusInterfaceSkeleton *interface_skeleton =
|
||||||
G_DBUS_INTERFACE_SKELETON (remote_desktop);
|
G_DBUS_INTERFACE_SKELETON (remote_desktop);
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
if (!g_dbus_interface_skeleton_export (interface_skeleton,
|
if (!g_dbus_interface_skeleton_export (interface_skeleton,
|
||||||
connection,
|
connection,
|
||||||
|
@ -274,7 +274,7 @@ on_bus_acquired (GDBusConnection *connection,
|
|||||||
MetaScreenCast *screen_cast = user_data;
|
MetaScreenCast *screen_cast = user_data;
|
||||||
GDBusInterfaceSkeleton *interface_skeleton =
|
GDBusInterfaceSkeleton *interface_skeleton =
|
||||||
G_DBUS_INTERFACE_SKELETON (screen_cast);
|
G_DBUS_INTERFACE_SKELETON (screen_cast);
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
if (!g_dbus_interface_skeleton_export (interface_skeleton,
|
if (!g_dbus_interface_skeleton_export (interface_skeleton,
|
||||||
connection,
|
connection,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user