mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
don't crash with missing libraries
This commit is contained in:
parent
217f93a317
commit
1f2cb7ac67
4 changed files with 15 additions and 2 deletions
|
|
@ -207,8 +207,10 @@ int main(int argc, char *argv[])
|
|||
rd_device_release(impl.device);
|
||||
|
||||
exit:
|
||||
pw_context_destroy(impl.context);
|
||||
pw_main_loop_destroy(impl.mainloop);
|
||||
if (impl.context)
|
||||
pw_context_destroy(impl.context);
|
||||
if (impl.mainloop)
|
||||
pw_main_loop_destroy(impl.mainloop);
|
||||
|
||||
pw_deinit();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue