mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
gdbusauth: Use g_clear_object() to simplify the code a little
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
a1db705bc2
commit
137a9bdcc2
@ -1348,12 +1348,9 @@ _g_dbus_auth_run_server (GDBusAuth *auth,
|
||||
"Not implemented (server)");
|
||||
|
||||
out:
|
||||
if (mech != NULL)
|
||||
g_object_unref (mech);
|
||||
if (dis != NULL)
|
||||
g_object_unref (dis);
|
||||
if (dos != NULL)
|
||||
g_object_unref (dos);
|
||||
g_clear_object (&mech);
|
||||
g_clear_object (&dis);
|
||||
g_clear_object (&dos);
|
||||
|
||||
/* ensure return value is FALSE if error is set */
|
||||
if (error != NULL && *error != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user