endpoint: set core to null after unregistering endpoint and not before

This commit is contained in:
Julian Bouzas 2019-06-06 12:51:05 -04:00
parent 1962a8ca1c
commit cad748ae91

View file

@ -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;
}
}