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:
Max Kellermann 2008-08-26 08:27:15 +02:00
parent 806a9f02a1
commit edd7e2f94e

View File

@ -87,11 +87,11 @@ static void freeJackClient(JackData *jd)
static void freeJackData(AudioOutput *audioOutput) static void freeJackData(AudioOutput *audioOutput)
{ {
JackData *jd = audioOutput->data; JackData *jd = audioOutput->data;
if (jd) {
freeJackClient(jd); assert(jd != NULL);
free(jd);
audioOutput->data = NULL; freeJackClient(jd);
} free(jd);
} }
static void jack_finishDriver(AudioOutput *audioOutput) static void jack_finishDriver(AudioOutput *audioOutput)