Commit f3dfc1ea authored by Peter Wu's avatar Peter Wu Committed by Richard Hughes

daemon: fix memleak in queue_changed_property

The control of value is transferred to up_daemon_queue_changed_property,
let it release the memory when an error occurs.
parent 71cbf8df
......@@ -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);
if (!daemon->priv->changed_props) {
daemon->priv->changed_props = g_hash_table_new_full (g_str_hash, g_str_equal,
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