aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-10-20 17:43:16 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-10-20 17:43:16 +0000
commit2525cf1230c87645db5824d5b17c1e2f8724668e (patch)
tree843b212fffad308f173386189241694ecc2ae47c
parentc2455ec0cace7b767c752e076c1e84d66fee07dc (diff)
downloadmpd-2525cf1230c87645db5824d5b17c1e2f8724668e.tar.gz
mpd-2525cf1230c87645db5824d5b17c1e2f8724668e.tar.xz
mpd-2525cf1230c87645db5824d5b17c1e2f8724668e.zip
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
-rw-r--r--src/audioOutput_ao.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/audioOutput_ao.c b/src/audioOutput_ao.c
index efba88529..3dafc8e89 100644
--- a/src/audioOutput_ao.c
+++ b/src/audioOutput_ao.c
@@ -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--;