pulse-server: eliminate some memory leaks in modules

This commit is contained in:
Barnabás Pőcze 2021-06-06 23:32:58 +02:00
parent 1d5fb2a7db
commit d9befc0792
9 changed files with 33 additions and 0 deletions

View file

@ -121,6 +121,11 @@ static int module_echo_cancel_unload(struct client *client, struct module *modul
pw_impl_module_destroy(d->mod);
d->mod = NULL;
}
pw_properties_free(d->props);
pw_properties_free(d->source_props);
pw_properties_free(d->sink_props);
return 0;
}

View file

@ -124,6 +124,10 @@ static int module_ladspa_sink_unload(struct client *client, struct module *modul
pw_impl_module_destroy(d->mod);
d->mod = NULL;
}
pw_properties_free(d->capture_props);
pw_properties_free(d->playback_props);
return 0;
}

View file

@ -124,6 +124,10 @@ static int module_ladspa_source_unload(struct client *client, struct module *mod
pw_impl_module_destroy(d->mod);
d->mod = NULL;
}
pw_properties_free(d->capture_props);
pw_properties_free(d->playback_props);
return 0;
}

View file

@ -112,6 +112,10 @@ static int module_loopback_unload(struct client *client, struct module *module)
pw_impl_module_destroy(d->mod);
d->mod = NULL;
}
pw_properties_free(d->capture_props);
pw_properties_free(d->playback_props);
return 0;
}

View file

@ -108,6 +108,10 @@ static int module_remap_sink_unload(struct client *client, struct module *module
pw_impl_module_destroy(d->mod);
d->mod = NULL;
}
pw_properties_free(d->capture_props);
pw_properties_free(d->playback_props);
return 0;
}

View file

@ -108,6 +108,10 @@ static int module_remap_source_unload(struct client *client, struct module *modu
pw_impl_module_destroy(d->mod);
d->mod = NULL;
}
pw_properties_free(d->capture_props);
pw_properties_free(d->playback_props);
return 0;
}

View file

@ -83,6 +83,8 @@ static int module_simple_protocol_tcp_unload(struct client *client, struct modul
pw_impl_module_destroy(d->mod);
pw_properties_free(d->module_props);
return 0;
}

View file

@ -109,6 +109,9 @@ static int module_tunnel_sink_unload(struct client *client, struct module *modul
pw_impl_module_destroy(d->mod);
d->mod = NULL;
}
pw_properties_free(d->stream_props);
return 0;
}

View file

@ -109,6 +109,9 @@ static int module_tunnel_source_unload(struct client *client, struct module *mod
pw_impl_module_destroy(d->mod);
d->mod = NULL;
}
pw_properties_free(d->stream_props);
return 0;
}