From cad748ae91a004c5395b3dd550f8e049c79d17cd Mon Sep 17 00:00:00 2001 From: Julian Bouzas <julian.bouzas@collabora.com> Date: Thu, 6 Jun 2019 12:51:05 -0400 Subject: [PATCH] endpoint: set core to null after unregistering endpoint and not before --- lib/wp/endpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wp/endpoint.c b/lib/wp/endpoint.c index 32a3036b..83db6776 100644 --- a/lib/wp/endpoint.c +++ b/lib/wp/endpoint.c @@ -279,8 +279,8 @@ wp_endpoint_unregister (WpEndpoint * self) g_info ("WpEndpoint:%p unregistering '%s' (%s)", self, priv->name, priv->media_class); - priv->core = NULL; wp_core_remove_global (priv->core, WP_GLOBAL_ENDPOINT, self); + priv->core = NULL; } } -- GitLab