metadata: free when the global is destroyed

This commit is contained in:
Wim Taymans 2020-06-02 17:16:09 +02:00
parent 4dfd60f838
commit 09913ca4ab

View file

@ -195,6 +195,7 @@ static void global_resource_destroy(void *data)
impl->metadata = NULL; impl->metadata = NULL;
if (impl->global) if (impl->global)
pw_global_destroy(impl->global); pw_global_destroy(impl->global);
free(impl);
} }
static const struct pw_resource_events global_resource_events = { static const struct pw_resource_events global_resource_events = {