OSDN Git Service

heartrate: Fix D-Bus registration error case
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Wed, 29 May 2013 12:38:24 +0000 (14:38 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 29 May 2013 12:59:59 +0000 (15:59 +0300)
commit973dc459cdab9fbc54eec0c092754cf364113bee
treedde8b32e2290fe5819c98b06c0bc23969936445e
parent27d9260ce5df97e4f073e59b87bf6a6ce656b601
heartrate: Fix D-Bus registration error case

If g_dbus_register_interface() fails, the struct heartrate_adapter
memory will be freed and therefore the heartrate_adapters list cannot
contain such an invalid pointer.
profiles/heartrate/heartrate.c