resource: destroy old core_resource

If there is already a core_resource when we are going to make a new
one, remove the old one. This can happen when there is a version
switch.
This commit is contained in:
Wim Taymans 2020-02-10 16:22:49 +01:00
parent 905e5af058
commit d2e7f75071
4 changed files with 8 additions and 2 deletions

View file

@ -952,8 +952,6 @@ int pw_proxy_init(struct pw_proxy *proxy, const char *type, uint32_t version);
void pw_proxy_remove(struct pw_proxy *proxy);
void pw_resource_remove(struct pw_resource *resource);
int pw_context_recalc_graph(struct pw_context *context);
void pw_impl_port_update_info(struct pw_impl_port *port, const struct spa_port_info *info);