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:
parent
c2455ec0ca
commit
2525cf1230
|
@ -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--;
|
||||
|
||||
|
|
Loading…
Reference in New Issue