alsa: release pcminfo after the strdup

This commit is contained in:
Stefan Kost 2009-02-27 11:14:25 +02:00
parent 4e4f922d7a
commit 3d0c70d3d8

View file

@ -494,12 +494,13 @@ gst_alsa_find_device_name_no_handle (GstObject * obj, const gchar * devcard,
}
ret = (gchar *) snd_pcm_info_get_name (pcminfo);
snd_pcm_info_free (pcminfo);
if (ret) {
ret = g_strdup (ret);
GST_LOG_OBJECT (obj, "name from pcminfo: %s", ret);
break;
}
snd_pcm_info_free (pcminfo);
if (ret)
break;
}
}