aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_jack.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audioOutputs/audioOutput_jack.c b/src/audioOutputs/audioOutput_jack.c
index 9fc52055f..5e0b1b599 100644
--- a/src/audioOutputs/audioOutput_jack.c
+++ b/src/audioOutputs/audioOutput_jack.c
@@ -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)