From 09913ca4ab5edafbbbe9987c4966bcd8c3c9e889 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 2 Jun 2020 17:16:09 +0200 Subject: [PATCH] metadata: free when the global is destroyed --- src/modules/module-metadata/metadata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/module-metadata/metadata.c b/src/modules/module-metadata/metadata.c index 87b0da7a4..d26b0278c 100644 --- a/src/modules/module-metadata/metadata.c +++ b/src/modules/module-metadata/metadata.c @@ -195,6 +195,7 @@ static void global_resource_destroy(void *data) impl->metadata = NULL; if (impl->global) pw_global_destroy(impl->global); + free(impl); } static const struct pw_resource_events global_resource_events = {