mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: eliminate some memory leaks in modules
This commit is contained in:
parent
1d5fb2a7db
commit
d9befc0792
9 changed files with 33 additions and 0 deletions
|
|
@ -121,6 +121,11 @@ static int module_echo_cancel_unload(struct client *client, struct module *modul
|
||||||
pw_impl_module_destroy(d->mod);
|
pw_impl_module_destroy(d->mod);
|
||||||
d->mod = NULL;
|
d->mod = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw_properties_free(d->props);
|
||||||
|
pw_properties_free(d->source_props);
|
||||||
|
pw_properties_free(d->sink_props);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,10 @@ static int module_ladspa_sink_unload(struct client *client, struct module *modul
|
||||||
pw_impl_module_destroy(d->mod);
|
pw_impl_module_destroy(d->mod);
|
||||||
d->mod = NULL;
|
d->mod = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw_properties_free(d->capture_props);
|
||||||
|
pw_properties_free(d->playback_props);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,10 @@ static int module_ladspa_source_unload(struct client *client, struct module *mod
|
||||||
pw_impl_module_destroy(d->mod);
|
pw_impl_module_destroy(d->mod);
|
||||||
d->mod = NULL;
|
d->mod = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw_properties_free(d->capture_props);
|
||||||
|
pw_properties_free(d->playback_props);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,10 @@ static int module_loopback_unload(struct client *client, struct module *module)
|
||||||
pw_impl_module_destroy(d->mod);
|
pw_impl_module_destroy(d->mod);
|
||||||
d->mod = NULL;
|
d->mod = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw_properties_free(d->capture_props);
|
||||||
|
pw_properties_free(d->playback_props);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,10 @@ static int module_remap_sink_unload(struct client *client, struct module *module
|
||||||
pw_impl_module_destroy(d->mod);
|
pw_impl_module_destroy(d->mod);
|
||||||
d->mod = NULL;
|
d->mod = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw_properties_free(d->capture_props);
|
||||||
|
pw_properties_free(d->playback_props);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,10 @@ static int module_remap_source_unload(struct client *client, struct module *modu
|
||||||
pw_impl_module_destroy(d->mod);
|
pw_impl_module_destroy(d->mod);
|
||||||
d->mod = NULL;
|
d->mod = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw_properties_free(d->capture_props);
|
||||||
|
pw_properties_free(d->playback_props);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,8 @@ static int module_simple_protocol_tcp_unload(struct client *client, struct modul
|
||||||
|
|
||||||
pw_impl_module_destroy(d->mod);
|
pw_impl_module_destroy(d->mod);
|
||||||
|
|
||||||
|
pw_properties_free(d->module_props);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,9 @@ static int module_tunnel_sink_unload(struct client *client, struct module *modul
|
||||||
pw_impl_module_destroy(d->mod);
|
pw_impl_module_destroy(d->mod);
|
||||||
d->mod = NULL;
|
d->mod = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw_properties_free(d->stream_props);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,9 @@ static int module_tunnel_source_unload(struct client *client, struct module *mod
|
||||||
pw_impl_module_destroy(d->mod);
|
pw_impl_module_destroy(d->mod);
|
||||||
d->mod = NULL;
|
d->mod = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw_properties_free(d->stream_props);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue