summaryrefslogtreecommitdiffstats
path: root/ext/alsaspdif
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2007-09-20 15:06:23 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2007-09-20 15:06:23 +0000
commitac256b5d1580ce1691d38192132b3ebbfa661e3c (patch)
tree998a7ac34735ee7727ddb322df14ccdd9c19f7f2 /ext/alsaspdif
parent7067d01d2a9e46a52f347cfa777e5a50f1d41494 (diff)
downloadgst-plugins-bad-ac256b5d1580ce1691d38192132b3ebbfa661e3c.tar.gz
gst-plugins-bad-ac256b5d1580ce1691d38192132b3ebbfa661e3c.tar.bz2
gst-plugins-bad-ac256b5d1580ce1691d38192132b3ebbfa661e3c.zip
Fix memory leaks. More to come.
Original commit message from CVS: * ext/alsaspdif/alsaspdifsink.c: * ext/timidity/gsttimidity.c: * ext/timidity/gstwildmidi.c: * gst/mpegvideoparse/mpegvideoparse.c: Fix memory leaks. More to come. * tests/check/Makefile.am: * tests/check/generic/states.c: Improved state change unit test.
Diffstat (limited to 'ext/alsaspdif')
-rw-r--r--ext/alsaspdif/alsaspdifsink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/alsaspdif/alsaspdifsink.c b/ext/alsaspdif/alsaspdifsink.c
index f59a1563..bc1e2276 100644
--- a/ext/alsaspdif/alsaspdifsink.c
+++ b/ext/alsaspdif/alsaspdifsink.c
@@ -589,6 +589,7 @@ alsaspdifsink_find_pcm_device (AlsaSPDIFSink * sink)
beach:
if (pcm)
snd_pcm_close (pcm);
+ snd_ctl_elem_list_clear (clist);
snd_ctl_close (ctl);
return err;
}