fix ofono and pulseaudio starting order assert 56/14556/2
authorJaska Uimonen <jaska.uimonen@intel.com>
Thu, 2 Jan 2014 13:37:02 +0000 (15:37 +0200)
committerJaska Uimonen <jaska.uimonen@intel.com>
Wed, 8 Jan 2014 11:23:10 +0000 (13:23 +0200)
Change-Id: I743c6e1fb5c65cc0702f073d6c2beb4e6868d7bb
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
src/modules/bluetooth/hfaudioagent-ofono.c

index c6d072f..2ac8a82 100644 (file)
@@ -403,10 +403,8 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *m, void *da
             if (old_owner && *old_owner) {
                 pa_log_debug("oFono disappeared");
 
-                if (hfdata->hf_audio_cards) {
-                    pa_hashmap_free(hfdata->hf_audio_cards);
-                    hfdata->hf_audio_cards = NULL;
-                }
+                if (hfdata->hf_audio_cards)
+                    pa_hashmap_remove_all(hfdata->hf_audio_cards);
 
                 if(hfdata->ofono_bus_id) {
                     pa_xfree(hfdata->ofono_bus_id);