[raop] master_session_free should allow null as argument

This commit is contained in:
ejurgensen 2019-02-28 23:17:47 +01:00
parent 3e4766ffaa
commit d762bd0a56
1 changed files with 3 additions and 0 deletions

View File

@ -1805,6 +1805,9 @@ master_session_make(struct media_quality *quality, bool encrypt)
static void
master_session_free(struct raop_master_session *rms)
{
if (!rms)
return;
outputs_quality_unsubscribe(&rms->rtp_session->quality);
rtp_session_free(rms->rtp_session);
evbuffer_free(rms->evbuf);