audio: es1370: add exit function
commit069eb7b2b8fc47c7cb52e5a4af23ea98d939e3da
authorLi Qiang <liqiang6-s@360.cn>
Thu, 15 Dec 2016 02:32:22 +0000 (14 18:32 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 11 Jan 2017 08:19:03 +0000 (11 09:19 +0100)
treee9827e6bf6761923bbaa9e3314f91cacc7397bf7
parent8becab9523f41c575e6befc07d23f1550ed5d213
audio: es1370: add exit function

Currently the es1370 device emulation doesn't have a exit function,
hot unplug this device will leak some memory. Add a exit function to
avoid this.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 585200c9.a968ca0a.1ab80.4c98@mx.google.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/audio/es1370.c