gst/gststructure.c: memleak fix: free fields array (partial fix for #134839)
authorBenjamin Otte <otte@gnome.org>
Fri, 2 Apr 2004 23:14:42 +0000 (23:14 +0000)
committerBenjamin Otte <otte@gnome.org>
Fri, 2 Apr 2004 23:14:42 +0000 (23:14 +0000)
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)

ChangeLog
gst/gststructure.c

index dc34e53b181b3235be88a9c665fc8616a6a0639f..b66c36ff8406ace39a2bf8f06454c29e8df0302a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index eb48e2e13dd5e79871a7aee0b0521a1646f453c8..70f8fc4d4637c6d4317e19941bbec95ee3a0d42c 100644 (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