mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
alsa: release pcminfo after the strdup
This commit is contained in:
parent
4e4f922d7a
commit
3d0c70d3d8
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue