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:
Matthias Clasen 2015-09-24 13:17:36 -04:00
parent 7f1a258ff9
commit 3f0fbae7e2

View File

@ -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