audio/jack: fix use after free segfault
commita6e037390dd91276f4a631d41188c87e8a60bb3f
authorGeoffrey McRae <geoff@hostfission.com>
Sun, 8 Nov 2020 06:33:50 +0000 (8 17:33 +1100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 13 Nov 2020 06:36:33 +0000 (13 07:36 +0100)
tree14029b7f5ade5eab41deedbd1024ae686b7ae533
parentcb5d19e8294486551c422759260883ed290226d9
audio/jack: fix use after free segfault

This change registers a bottom handler to close the JACK client
connection when a server shutdown signal is received. Without this
libjack2 attempts to "clean up" old clients and causes a use after free
segfault.

Signed-off-by: Geoffrey McRae <geoff@hostfission.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <20201108063351.35804-2-geoff@hostfission.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/jackaudio.c