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
|
||||
gst_dshow_free_pins_mediatypes (GList * pins_mediatypes)
|
||||
{
|
||||
while (pins_mediatypes != NULL) {
|
||||
gst_dshow_free_pin_mediatype (pins_mediatypes->data);
|
||||
pins_mediatypes = g_list_remove_link (pins_mediatypes, pins_mediatypes);
|
||||
}
|
||||
g_list_free_full (pins_mediatypes,
|
||||
(GDestroyNotify) gst_dshow_free_pin_mediatype);
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
|
Loading…
Reference in a new issue