mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
dshow: fix GList leak
_remove_link() would not free the actual list nodes.
This commit is contained in:
parent
edab4deb3a
commit
8a78e788b0
1 changed files with 2 additions and 4 deletions
|
@ -125,10 +125,8 @@ gst_dshow_new_pin_mediatype_from_streamcaps (IPin * pin, gint id, IAMStreamConfi
|
||||||
void
|
void
|
||||||
gst_dshow_free_pins_mediatypes (GList * pins_mediatypes)
|
gst_dshow_free_pins_mediatypes (GList * pins_mediatypes)
|
||||||
{
|
{
|
||||||
while (pins_mediatypes != NULL) {
|
g_list_free_full (pins_mediatypes,
|
||||||
gst_dshow_free_pin_mediatype (pins_mediatypes->data);
|
(GDestroyNotify) gst_dshow_free_pin_mediatype);
|
||||||
pins_mediatypes = g_list_remove_link (pins_mediatypes, pins_mediatypes);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
|
Loading…
Reference in a new issue