mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pipewire: allow NULL pointers in pw_properties_free()
Just like the real free() we should just ignore a NULL pointer, makes the caller code easier for those instances where properties are optional. Patch generated with concinelle with a few manual fixes.
This commit is contained in:
parent
a1e821c259
commit
e0471c6757
68 changed files with 142 additions and 273 deletions
|
|
@ -194,8 +194,7 @@ static void object_destroy(struct object *o)
|
|||
m->this.n_objects--;
|
||||
if (o->this.proxy)
|
||||
pw_proxy_destroy(o->this.proxy);
|
||||
if (o->this.props)
|
||||
pw_properties_free(o->this.props);
|
||||
pw_properties_free(o->this.props);
|
||||
if (o->this.message_object_path)
|
||||
free(o->this.message_object_path);
|
||||
clear_params(&o->this.param_list, SPA_ID_INVALID);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue