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:06:59 +0000 (19:06 -0700)
commit554a4da9b4170e9b122322432c5480d3297bc0e7
tree0f2930ec82c239996e7055ba56e77c68c80650b9
parentffde6978bd0fe546cf791b8f3016f39d155e6af0
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