]> code.delx.au - pulseaudio/commit
dbus: Use correct initialization for source ports hashmap.
authorJuho Hämäläinen <juho.hamalainen@tieto.com>
Tue, 15 Apr 2014 13:11:48 +0000 (16:11 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Thu, 17 Apr 2014 08:13:01 +0000 (11:13 +0300)
commita306d66525a996a5095ff144b7b03403d2666cb5
treeb085ff1a4f30905d7253594160aaada840294a71
parent7fac10730128141fb47b6ecbe3a0cfa7f367ab3a
dbus: Use correct initialization for source ports hashmap.

Source ports hashmap is created without value freeing function, which
results in (hashmap values) device ports not being freed when source
ports are removed or module is unloaded. This results in memory leak
during normal operation and during daemon shutdown dbus_protocol shared
object isn't unreferenced correctly, leaving dbus_protocol object in
core->shared, which causes assert when shared hashmap is checked for
isempty() before freeing.
src/modules/dbus/iface-device.c