Commit 71cbf8df authored by Peter Wu's avatar Peter Wu Committed by Richard Hughes

linux: fix memleak when reading critical action

g_variant_get for string types must be freed as documented at
Since we just want to compare it, use a pointer as documented at
parent b3e5143f
......@@ -346,7 +346,7 @@ check_action_result (GVariant *result)
if (result) {
const char *s;
g_variant_get (result, "(s)", &s);
g_variant_get (result, "(&s)", &s);
if (g_strcmp0 (s, "yes") == 0)
return TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment