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

@ -216,6 +216,7 @@ static void client_destroy(struct client *this)
if (this->sender) {
spa_list_remove(&this->link);
free(this->sender);
this->sender = NULL;
}
}