Commit edd7e2f9 authored by Max Kellermann's avatar Max Kellermann

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.
parent 806a9f02
...@@ -87,11 +87,11 @@ static void freeJackClient(JackData *jd) ...@@ -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) {
assert(jd != NULL);
freeJackClient(jd); freeJackClient(jd);
free(jd); free(jd);
audioOutput->data = NULL;
}
} }
static void jack_finishDriver(AudioOutput *audioOutput) static void jack_finishDriver(AudioOutput *audioOutput)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment