hfp_hf_bluez5: Fix crash on re-pairing a Device
authorKuba Pawlak <kubax.t.pawlak@intel.com>
Fri, 10 Jul 2015 15:08:01 +0000 (17:08 +0200)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 13 Jul 2015 02:19:31 +0000 (21:19 -0500)
commit71df8bb15e75705cab659e679fbe0b6f8c52bbf7
tree084482b6b40ff6cdcc8c59497e48123d04d3e962
parent35ebbf4c976348206adeee64b4e41dfcab608a8a
hfp_hf_bluez5: Fix crash on re-pairing a Device

It may happen that a Device object is unpaired an paired again
without being removed from DBus. This in turn triggers second
modem object to be created, but not fully initialized.
If this modem object is used, oFono will crash.
plugins/hfp_hf_bluez5.c