aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-07 23:53:28 +0100
committerMax Kellermann <max@duempel.org>2009-01-07 23:53:28 +0100
commit405c102c17bdc0077561dc142c495d47cdf8179d (patch)
tree8f16df39803cc109658bd2ef57fe79cf451cb9c1
parent97ae4a499aedfec4f1cbce0f621e112f7e70925f (diff)
downloadmpd-405c102c17bdc0077561dc142c495d47cdf8179d.tar.gz
mpd-405c102c17bdc0077561dc142c495d47cdf8179d.tar.xz
mpd-405c102c17bdc0077561dc142c495d47cdf8179d.zip
output: deinitialize notify object
Free memory allocated by the notify object (GMutex, GCond) when it's not used by the output object anymore.
-rw-r--r--src/output_control.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/output_control.c b/src/output_control.c
index 80cdf71d0..7f2d8ba8d 100644
--- a/src/output_control.c
+++ b/src/output_control.c
@@ -140,6 +140,8 @@ void audio_output_finish(struct audio_output *audioOutput)
audioOutput->plugin->finish(audioOutput->data);
if (audioOutput->convBuffer)
free(audioOutput->convBuffer);
+
+ notify_deinit(&audioOutput->notify);
}
void audio_output_send_tag(struct audio_output *audioOutput,