mpegvideoparse: make this build with older glib

g_list_free_full is a new convenience function.
Replace it with g_list_foreach and g_list_free.

https://bugzilla.gnome.org/show_bug.cgi?id=658450
This commit is contained in:
Vincent Penquerc'h 2011-09-07 12:32:48 +01:00 committed by Sebastian Dröge
parent 724d7a3def
commit 1a6dbe1e27

View file

@ -497,7 +497,8 @@ end:
ret = FALSE;
}
g_list_free_full (mpvparse->typeoffsize, (GDestroyNotify) g_free);
g_list_foreach (mpvparse->typeoffsize, (GFunc) g_free, NULL);
g_list_free (mpvparse->typeoffsize);
mpvparse->typeoffsize = NULL;
return ret;