Cleanup commented out g_variant_unref calls

They were bogus and the added comment explains why they're not needed
in this case
This commit is contained in:
scorpion-26 2023-11-05 22:10:02 +01:00
parent 2420574c70
commit 4b3679b550

View file

@ -144,10 +144,7 @@ namespace SNI
g_error_free(err);
return nullptr;
}
// There's probably a better method than to use 3 variants
// g_variant_unref(params[0]);
// g_variant_unref(params[1]);
// g_variant_unref(param);
// g_dbus_connection_call_sync consumes the parameter and its children, so no need to unref
return res;
};