mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
dbus: Fix cleanup when removing signal listeners
This commit is contained in:
parent
10262197d0
commit
4ffb6fd617
1 changed files with 1 additions and 1 deletions
|
|
@ -1051,7 +1051,7 @@ void pa_dbus_protocol_remove_signal_listener(pa_dbus_protocol *p, DBusConnection
|
||||||
pa_assert_se((conn_entry = pa_hashmap_get(p->connections, conn)));
|
pa_assert_se((conn_entry = pa_hashmap_get(p->connections, conn)));
|
||||||
|
|
||||||
if (signal_name) {
|
if (signal_name) {
|
||||||
if ((signal_paths_entry = pa_hashmap_get(conn_entry->listening_signals, signal_name)))
|
if ((signal_paths_entry = pa_hashmap_remove(conn_entry->listening_signals, signal_name)))
|
||||||
signal_paths_entry_free(signal_paths_entry);
|
signal_paths_entry_free(signal_paths_entry);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue