From 3e359646d7d85144bd4e3778d900507a2d122e60 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 8 Mar 2019 11:55:01 +0100 Subject: [PATCH] client-stream: first destroy the node When the client-stream is destroyed, let us first destroy the node of the stream and then the internal client-node. --- src/modules/module-client-node/client-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-client-node/client-stream.c b/src/modules/module-client-node/client-stream.c index 83de49e03..70c2f7467 100644 --- a/src/modules/module-client-node/client-stream.c +++ b/src/modules/module-client-node/client-stream.c @@ -1173,13 +1173,13 @@ static void node_destroy(void *data) struct impl *impl = data; pw_log_debug("client-stream %p: destroy", &impl->this); spa_hook_remove(&impl->client_node_listener); - pw_client_node_destroy(impl->client_node); } static void node_free(void *data) { struct impl *impl = data; pw_log_debug("client-stream %p: free", &impl->this); + pw_client_node_destroy(impl->client_node); spa_hook_remove(&impl->node_listener); cleanup(impl); }