endpoint: remove unneeded ref/unref

This commit is contained in:
Julian Bouzas 2019-06-26 12:36:59 -04:00
parent ded3106efc
commit 495a74d0e6

View file

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