diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-10-29 16:12:36 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-10-29 16:12:36 +0000 |
commit | 6aa27a3dd4c271a66e1f9d8a6ec1d95f092c224d (patch) | |
tree | 0c35bea4dce1546329cf9d3062f53e8dfec04f2f /src/audioOutput.c | |
parent | 65a956db17d1bb31412234a4a96c0b1c50b3c09c (diff) | |
download | mpd-6aa27a3dd4c271a66e1f9d8a6ec1d95f092c224d.tar.gz mpd-6aa27a3dd4c271a66e1f9d8a6ec1d95f092c224d.tar.xz mpd-6aa27a3dd4c271a66e1f9d8a6ec1d95f092c224d.zip |
sync w/ trunk
git-svn-id: https://svn.musicpd.org/mpd/branches/shank-rewrite-config@2398 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audioOutput.c')
-rw-r--r-- | src/audioOutput.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audioOutput.c b/src/audioOutput.c index 0175ed04f..a1de85942 100644 --- a/src/audioOutput.c +++ b/src/audioOutput.c @@ -11,11 +11,13 @@ static List * audioOutputPluginList; void loadAudioOutputPlugin(AudioOutputPlugin * audioOutputPlugin) { + if(!audioOutputPlugin->name) return; insertInList(audioOutputPluginList, audioOutputPlugin->name, audioOutputPlugin); } void unloadAudioOutputPlugin(AudioOutputPlugin * audioOutputPlugin) { + if(!audioOutputPlugin->name) return; deleteFromList(audioOutputPluginList, audioOutputPlugin->name); } @@ -91,6 +93,8 @@ void closeAudioOutput(AudioOutput * audioOutput) { void finishAudioOutput(AudioOutput * audioOutput) { closeAudioOutput(audioOutput); audioOutput->finishDriverFunc(audioOutput); + free(audioOutput->type); + free(audioOutput->name); free(audioOutput); } |