]> code.delx.au - pulseaudio/commit
protocol-dbus: Fix some memory management bugs.
authorTanu Kaskinen <tanuk@iki.fi>
Thu, 21 Apr 2011 05:06:53 +0000 (08:06 +0300)
committerColin Guthrie <colin@mageia.org>
Sat, 23 Apr 2011 17:23:38 +0000 (18:23 +0100)
commitdcab6e15618ff44d814d29aaf92ade6613c70657
treebaa112498ebfd59315db5536af2af2d431900146
parent15257b0ec34b1b20fc531060dc9b953a93514f4f
protocol-dbus: Fix some memory management bugs.

There were several memory leaks. In addition to those,
pa_dbus_protocol_add_interface() used a string from the
caller as a key to a hashmap, instead of a copy of the
string. This caused trouble when the caller freed the
string while the key was still in use in the hashmap.
src/pulsecore/protocol-dbus.c