mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 03:02:49 +00:00
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:
parent
2420574c70
commit
4b3679b550
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue