The control of value is transferred to up_daemon_queue_changed_property, let it release the memory when an error occurs.
https://bugs.freedesktop.org/show_bug.cgi?id=82659 --- src/up-daemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/up-daemon.c b/src/up-daemon.c index eb12c36..63ea7d1 100644 --- a/src/up-daemon.c +++ b/src/up-daemon.c @@ -662,8 +662,10 @@ up_daemon_queue_changed_property (UpDaemon *daemon, { g_return_if_fail (UP_IS_DAEMON (daemon)); - if (daemon->priv->connection == NULL) + if (daemon->priv->connection == NULL) { + g_variant_unref (value); return; + } if (!daemon->priv->changed_props) { daemon->priv->changed_props = g_hash_table_new_full (g_str_hash, g_str_equal, -- 2.1.3 _______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel