aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-30 18:31:38 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-30 18:31:38 +0000
commitbc95aa0e12102cfdffa9952900d2f6d791647df3 (patch)
tree818e966f58a7d77d7c9e2a5b8fb661d03dd4ea3b
parent693dc378518552cf84fad13b822efb76fd42c943 (diff)
downloadmpd-bc95aa0e12102cfdffa9952900d2f6d791647df3.tar.gz
mpd-bc95aa0e12102cfdffa9952900d2f6d791647df3.tar.xz
mpd-bc95aa0e12102cfdffa9952900d2f6d791647df3.zip
Only call finishDriverFunc if there is one. The null plugin doesn't have
one now, and trying to call NULL was causing a segfault at exit. git-svn-id: https://svn.musicpd.org/mpd/trunk@6398 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutput.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audioOutput.c b/src/audioOutput.c
index 49a7ce258..579bdd911 100644
--- a/src/audioOutput.c
+++ b/src/audioOutput.c
@@ -242,7 +242,8 @@ void closeAudioOutput(AudioOutput * audioOutput)
void finishAudioOutput(AudioOutput * audioOutput)
{
closeAudioOutput(audioOutput);
- audioOutput->finishDriverFunc(audioOutput);
+ if (audioOutput->finishDriverFunc)
+ audioOutput->finishDriverFunc(audioOutput);
if (audioOutput->convBuffer)
free(audioOutput->convBuffer);
}