mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
shell_dbus_acquire_name: Don't leak the result
The GVariant returned by g_dbus_proxy_call_sync must be freed with g_variant_unref, to prevent a leak.
This commit is contained in:
parent
dd0d5a757c
commit
0fb98606ef
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ shell_dbus_acquire_name (GDBusProxy *bus,
|
|||
exit (1);
|
||||
}
|
||||
g_variant_get (request_name_variant, "(u)", request_name_result);
|
||||
g_variant_unref (request_name_variant);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue