dshow: fix GList leak
_remove_link() would not free the actual list nodes.
This commit is contained in:
parent
edab4deb3a
commit
8a78e788b0
@ -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…
x
Reference in New Issue
Block a user