gst/gststructure.c: memleak fix: free fields array (partial fix for #134839)

Original commit message from CVS:
reviewed by Benjamin Otte  <otte@gnome.org>
* gst/gststructure.c: (gst_structure_free):
memleak fix: free fields array (partial fix for #134839)
This commit is contained in:
Benjamin Otte 2004-04-02 23:14:42 +00:00
parent d355246b0d
commit 2396af9dc4
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2004-04-03 Tim-Phillip Müller <t.i.m@zen.co.uk>
reviewed by Benjamin Otte <otte@gnome.org>
* gst/gststructure.c: (gst_structure_free):
memleak fix: free fields array (partial fix for #134839)
2004-04-01 Ronald Bultje <rbultje@ronald.bitfreak.net>
* docs/random/ds/0.9-suggested-changes:

View file

@ -224,6 +224,7 @@ gst_structure_free (GstStructure * structure)
g_value_unset (&field->value);
}
}
g_array_free (structure->fields, TRUE);
#ifdef USE_POISONING
memset (structure, 0xff, sizeof (GstStructure));
#endif