jack: don't set audioOutput->data=NULL
There is only one caller of freeJackData() left: jack_finishDriver(). This function is called by the mpd core, and is called exactly once for every successful jack_initDriver(). We do not need to clear audioOutput->data, since this variable is invalidated anyway.
This commit is contained in:
parent
806a9f02a1
commit
edd7e2f94e
@ -87,11 +87,11 @@ static void freeJackClient(JackData *jd)
|
||||
static void freeJackData(AudioOutput *audioOutput)
|
||||
{
|
||||
JackData *jd = audioOutput->data;
|
||||
if (jd) {
|
||||
freeJackClient(jd);
|
||||
free(jd);
|
||||
audioOutput->data = NULL;
|
||||
}
|
||||
|
||||
assert(jd != NULL);
|
||||
|
||||
freeJackClient(jd);
|
||||
free(jd);
|
||||
}
|
||||
|
||||
static void jack_finishDriver(AudioOutput *audioOutput)
|
||||
|
Loading…
Reference in New Issue
Block a user