gdbus: Fix emitting PropertiesChanged twice
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 19 Aug 2013 13:54:35 +0000 (16:54 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 11 Sep 2013 02:07:28 +0000 (19:07 -0700)
commit778b60a94f12496e18435d62f399b94b243ac206
tree69d507bc2502d341105836bcbd66435cc700e402
parent1ad938a5fd9917a9cba46a00a7715f4043723e8a
gdbus: Fix emitting PropertiesChanged twice

This fixes double emission of PropertiesChanged introduced by flushing
changes, the flushing can happen during the pending processing so the
pending_prop flag needs to be updated in the beginning and the list of
properties can be freed before g_dbus_send_message as it is not required
anymore.
gdbus/object.c