mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pipewire: module-profiler: destroy event source
Even though all event sources are kept in a list in the current implementation of the event loop in the SPA support plugin, relying on it freeing all sources could lead to unbounded memory use if the profiler module is loaded and unloaded over and over again.
This commit is contained in:
parent
d4e4b5df98
commit
df3ea8dafa
1 changed files with 2 additions and 0 deletions
|
|
@ -346,6 +346,8 @@ static void module_destroy(void *data)
|
||||||
|
|
||||||
pw_properties_free(impl->properties);
|
pw_properties_free(impl->properties);
|
||||||
|
|
||||||
|
pw_loop_destroy_source(pw_context_get_main_loop(impl->context), impl->flush_timeout);
|
||||||
|
|
||||||
free(impl);
|
free(impl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue