mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
Fix some possible leaks.
This commit is contained in:
parent
fa5b04f3e5
commit
6224068586
3 changed files with 11 additions and 1 deletions
|
|
@ -102,12 +102,18 @@ static GstPipeWireCore *make_core (int fd)
|
|||
mainloop_failed:
|
||||
{
|
||||
GST_ERROR ("error starting mainloop");
|
||||
pw_context_destroy (core->context);
|
||||
pw_thread_loop_destroy (core->loop);
|
||||
g_free (core);
|
||||
return NULL;
|
||||
}
|
||||
connection_failed:
|
||||
{
|
||||
GST_ERROR ("error connect: %m");
|
||||
pw_thread_loop_unlock (core->loop);
|
||||
pw_context_destroy (core->context);
|
||||
pw_thread_loop_destroy (core->loop);
|
||||
g_free (core);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue