free() can handle NULL just fine so skip the check

Fixes #117
This commit is contained in:
Wim Taymans 2018-12-19 17:47:25 +01:00
parent b6db6e2130
commit 0984096089
13 changed files with 63 additions and 99 deletions

View file

@ -440,8 +440,7 @@ static void node_proxy_destroy(void *data)
}
if (n->info)
pw_node_info_free(n->info);
if (n->media)
free(n->media);
free(n->media);
if (n->session) {
spa_list_remove(&n->session_link);
n->session = NULL;