X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/14e2553185e1afa93737586771326cd12a154239..eca082a93f2619cfa10733947a81fa779cb49573:/src/pulsecore/protocol-dbus.c diff --git a/src/pulsecore/protocol-dbus.c b/src/pulsecore/protocol-dbus.c index c0d1ec46..cf4b9fc5 100644 --- a/src/pulsecore/protocol-dbus.c +++ b/src/pulsecore/protocol-dbus.c @@ -993,8 +993,7 @@ void pa_dbus_protocol_add_signal_listener( /* Replace the old signal paths entry for this signal with a new * one. */ - if ((signal_paths_entry = pa_hashmap_remove(conn_entry->listening_signals, signal_name))) - signal_paths_entry_free(signal_paths_entry); + pa_hashmap_remove_and_free(conn_entry->listening_signals, signal_name); signal_paths_entry = signal_paths_entry_new(signal_name); for (i = 0; i < n_objects; ++i)