mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-29 13:14:14 -04:00
module-rtp: release data_loop on rtp_stream_new error path
rtp_stream_new() acquires a data loop with pw_context_acquire_loop() but the out: error path never calls pw_context_release_loop(), leaking the loop reference on every failure after acquisition. Mirror rtp_stream_destroy() and other modules that pair acquire with release.
This commit is contained in:
parent
51ea8aab2f
commit
541d627482
1 changed files with 2 additions and 0 deletions
|
|
@ -1036,6 +1036,8 @@ out:
|
|||
if (impl) {
|
||||
if (impl->stream)
|
||||
pw_stream_destroy(impl->stream);
|
||||
if (impl->data_loop)
|
||||
pw_context_release_loop(impl->context, impl->data_loop);
|
||||
free(impl);
|
||||
}
|
||||
errno = -res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue