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 5390079b4a
commit 5c6bd8e5c7
10 changed files with 46 additions and 87 deletions

View file

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