ext/alsa/gstalsadeviceprobe.c: Don't return before freeing up the allocated structures.

Original commit message from CVS:
* ext/alsa/gstalsadeviceprobe.c:
(gst_alsa_get_device_list): Don't return before freeing up
the allocated structures.
This commit is contained in:
Edward Hervey 2008-04-24 09:27:35 +00:00
parent 2b44c294ff
commit f75494578e
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-04-24 Edward Hervey <edward.hervey@collabora.co.uk>
* ext/alsa/gstalsadeviceprobe.c:
(gst_alsa_get_device_list): Don't return before freeing up
the allocated structures.
2008-04-24 Stefan Kost <ensonic@users.sf.net>
* gst/playback/gstplaybin.c:

View file

@ -67,7 +67,8 @@ gst_alsa_get_device_list (snd_pcm_stream_t stream)
if (snd_card_next (&card) < 0 || card < 0) {
/* no soundcard found */
return NULL;
GST_WARNING ("No soundcard found");
goto beach;
}
while (card >= 0) {
@ -111,6 +112,7 @@ gst_alsa_get_device_list (snd_pcm_stream_t stream)
}
}
beach:
snd_ctl_card_info_free (info);
snd_pcm_info_free (pcminfo);