mixer_handle = pa_alsa_open_mixer_for_pcm(pcm_handle, NULL, &hctl_handle);
if (!mixer_handle || !hctl_handle) {
/* Cannot open mixer, remove all entries */
- while (pa_hashmap_steal_first(ps->paths));
+ pa_hashmap_remove_all(ps->paths, NULL);
return;
}