mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 06:13:29 +02:00
Plug mem leaks in gdbus tests & examples
Use "&s" instead of "s", and free the variant iters after use. Bug #618663.
This commit is contained in:
@@ -64,7 +64,7 @@ handle_method_call (GDBusConnection *connection,
|
||||
{
|
||||
const gchar *greeting;
|
||||
|
||||
g_variant_get (parameters, "(s)", &greeting);
|
||||
g_variant_get (parameters, "(&s)", &greeting);
|
||||
|
||||
if (g_strcmp0 (greeting, "Return Unregistered") == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user