Servers older than 0.9.15 don't know anything about cards, and card operations will return a NULL pa_operation object when connected to that old server. We must check the pa_operation pointer before passing it to pa_operation_unref(), otherwise a NULL operation will result in a crash.
e144039 pactl: Fix crash with older servers
src/utils/pactl.c | 206 +++++++++++++++++++++++++++++++++++------------------
1 file changed, 137 insertions(+), 69 deletions(-)
Upstream: cgit.freedesktop.org