diff --git a/lib/wp/endpoint.c b/lib/wp/endpoint.c index 12853e0b..2ce211a4 100644 --- a/lib/wp/endpoint.c +++ b/lib/wp/endpoint.c @@ -345,9 +345,7 @@ wp_endpoint_unregister (WpEndpoint * self) g_info ("WpEndpoint:%p unregistering '%s' (%s)", self, priv->name, priv->media_class); - g_object_ref (self); wp_core_remove_global (core, WP_GLOBAL_ENDPOINT, self); - g_object_unref (self); } }