spa-device: cleanup in the free signal

Cleanup and close the plugin in the free signal so that the object
has a chance to remove the event handlers from the object.
This commit is contained in:
Wim Taymans 2020-11-09 15:36:36 +01:00
parent a0b2e5b498
commit 29d6179328
2 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ struct impl {
void *user_data;
};
static void device_destroy(void *data)
static void device_free(void *data)
{
struct impl *impl = data;
struct pw_impl_device *device = impl->this;
@ -64,7 +64,7 @@ static void device_destroy(void *data)
static const struct pw_impl_device_events device_events = {
PW_VERSION_IMPL_DEVICE_EVENTS,
.destroy = device_destroy,
.free = device_free,
};
struct pw_impl_device *