libpulse: Store pa_stream pointers to hashmaps instead of dynarrays.
authorTanu Kaskinen <ext-tanu.kaskinen@nokia.com>
Thu, 3 Dec 2009 11:22:05 +0000 (13:22 +0200)
committerColin Guthrie <cguthrie@mandriva.org>
Thu, 3 Dec 2009 21:47:46 +0000 (21:47 +0000)
commit4c793cfc76360676b3881d7943b49adf892594d2
tree93377259f55938394bcdc5fdf579806098953e4c
parent118466638aa651eac0d20513d348ddcc446bb5e6
libpulse: Store pa_stream pointers to hashmaps instead of dynarrays.

Since the stream identifiers (channels) are monotonically growing integer, it
isn't a good idea to use them as index to a dynamic array, because the array
will grow all the time. This is not a problem with client connections that
don't create many streams, but, for example, long-running clients that use
libcanberra for playing event sounds, this means that the client connection
effectively leaks memory.
src/pulse/context.c
src/pulse/internal.h
src/pulse/stream.c