mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Merge branch 'main' into 'main'
shell-util: Fix a memory leak of a floating variant on error See merge request GNOME/gnome-shell!3396
This commit is contained in:
commit
ec34b489b7
1 changed files with 2 additions and 1 deletions
|
|
@ -619,6 +619,7 @@ shell_util_systemd_call (const char *command,
|
|||
gpointer user_data)
|
||||
{
|
||||
g_autoptr (GTask) task = g_task_new (NULL, cancellable, callback, user_data);
|
||||
g_autoptr (GVariant) params_owned = g_variant_ref_sink (g_steal_pointer (¶ms));
|
||||
|
||||
#ifdef HAVE_SYSTEMD
|
||||
g_autoptr (GDBusConnection) connection = NULL;
|
||||
|
|
@ -695,7 +696,7 @@ shell_util_systemd_call (const char *command,
|
|||
"/org/freedesktop/systemd1",
|
||||
"org.freedesktop.systemd1.Manager",
|
||||
command,
|
||||
params,
|
||||
params_owned,
|
||||
G_VARIANT_TYPE ("(o)"),
|
||||
G_DBUS_CALL_FLAGS_NONE,
|
||||
-1, cancellable,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue