spa-node-factory: cleanup node when binding the client resource fails

This commit is contained in:
George Kiagiadakis 2020-06-02 17:06:09 +03:00 committed by Wim Taymans
parent 16c1a7fe33
commit 17d7cdc80e

View file

@ -173,6 +173,7 @@ error_create_node:
goto error_exit; goto error_exit;
error_bind: error_bind:
pw_resource_errorf_id(resource, new_id, res, "can't bind node"); pw_resource_errorf_id(resource, new_id, res, "can't bind node");
pw_impl_node_destroy(node);
goto error_exit; goto error_exit;
error_exit_cleanup: error_exit_cleanup: