Commit bc95aa0e authored by J. Alexander Treuman's avatar J. Alexander Treuman

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
parent 693dc378
......@@ -242,6 +242,7 @@ void closeAudioOutput(AudioOutput * audioOutput)
void finishAudioOutput(AudioOutput * audioOutput)
{
closeAudioOutput(audioOutput);
if (audioOutput->finishDriverFunc)
audioOutput->finishDriverFunc(audioOutput);
if (audioOutput->convBuffer)
free(audioOutput->convBuffer);
......
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