libupower-glib: fix small memory leak

Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
Pavel Vasin 2012-04-25 15:33:52 +04:00 committed by Richard Hughes
parent 28c8653ed8
commit bf56cecab4

View file

@ -339,6 +339,7 @@ up_client_get_properties_sync (UpClient *client, GCancellable *cancellable, GErr
g_warning ("No 'DaemonVersion' property");
goto out;
}
g_free (client->priv->daemon_version);
client->priv->daemon_version = g_strdup (g_value_get_string (value));
value = g_hash_table_lookup (props, "CanSuspend");