On Thu, 2011-11-03 at 21:04 +0200, Tanu Kaskinen wrote: > > + if (p->profiles) > > + pa_hashmap_free(p->profiles, NULL, NULL); > > pa_assert(pa_hashmap_isempty(p->profiles)) would be nice here. I'll take that back. I was asking myself that "shouldn't we first free the hashmap contents?", but the answer is anyway "no", because ports don't own the profiles. -- Tanu