Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is memory leakage that is proportional to amount of incoming dbus traffic. Analyzing valgrind logs points towards GVariant reference leaks from functions like validate_arg0_name(). Documentation for g_variant_get_child_value() states: "The returned value is never floating. You should free it with g_variant_unref() when you're done with it." Many functions omit such cleanup actions. Use g_autoptr(GVariant) type for variables that are used for storing g_variant_get_child_value() return value - like how it is already done in get_arg0_string(). Signed-off-by: Simo Piiroinen <[email protected]>
- Loading branch information