pulse-server: fix some error checks in modules

These should check if the previous pw_manager_new failed.
This commit is contained in:
Pauli Virtanen 2022-02-13 13:39:49 +02:00
parent 02e6f9fbca
commit 8e63aa3d10
2 changed files with 2 additions and 2 deletions

View file

@ -381,7 +381,7 @@ static int module_combine_sink_load(struct client *client, struct module *module
return res;
data->manager = pw_manager_new(data->core);
if (client->manager == NULL)
if (data->manager == NULL)
return -errno;
pw_manager_add_listener(data->manager, &data->manager_listener,

View file

@ -591,7 +591,7 @@ static int module_zeroconf_publish_load(struct client *client, struct module *mo
}
data->manager = pw_manager_new(data->core);
if (client->manager == NULL) {
if (data->manager == NULL) {
pw_log_error("failed to create pipewire manager: %m");
return -errno;
}