mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
shell_dbus_acquire_name: Don't leak error
If fatal is not set, we return from this function in the error case. Don't leak the GError if that happens.
This commit is contained in:
parent
0bbb226faf
commit
dd0d5a757c
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ shell_dbus_acquire_name (GDBusProxy *bus,
|
|||
&error)))
|
||||
{
|
||||
g_printerr ("failed to acquire %s: %s\n", name, error ? error->message : "");
|
||||
g_clear_error (&error);
|
||||
if (!fatal)
|
||||
return;
|
||||
exit (1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue