pipewire: allow NULL pointers in pw_free_strv()

Just like the real free() we should just ignore a NULL pointer, makes the
caller code easier for those instances where properties are optional.
This commit is contained in:
Peter Hutterer 2021-06-02 15:19:19 +10:00 committed by Wim Taymans
parent e0471c6757
commit 71e0cfb5fa
5 changed files with 10 additions and 12 deletions

View file

@ -117,7 +117,6 @@ error_arguments:
pw_log_error("usage: module-spa-device " MODULE_USAGE);
goto error_exit_cleanup;
error_exit_cleanup:
if (argv)
pw_free_strv(argv);
pw_free_strv(argv);
return res;
}