be sure to free "data" when finishing the output driver

git-svn-id: https://svn.musicpd.org/mpd/trunk@2282 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-10-20 17:43:16 +00:00
parent c2455ec0ca
commit 2525cf1230
1 changed files with 6 additions and 1 deletions

View File

@ -135,9 +135,14 @@ static void audioOutputAo_initDriver(AudioOutput * audioOutput) {
free(dup);
}
static void freeAoData(AoData * ad) {
ao_free_options(ad->options);
free(ad);
}
static void audioOutputAo_finishDriver(AudioOutput * audioOutput) {
AoData * ad = (AoData *)audioOutput->data;
ao_free_options(ad->options);
freeAoData(ad);
driverInitCount--;