From 2396af9dc429f70334cb62921102f358384c3bb8 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 2 Apr 2004 23:14:42 +0000 Subject: [PATCH] gst/gststructure.c: memleak fix: free fields array (partial fix for #134839) Original commit message from CVS: reviewed by Benjamin Otte * gst/gststructure.c: (gst_structure_free): memleak fix: free fields array (partial fix for #134839) --- ChangeLog | 7 +++++++ gst/gststructure.c | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index dc34e53b18..b66c36ff84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-04-03 Tim-Phillip Müller + + reviewed by Benjamin Otte + + * gst/gststructure.c: (gst_structure_free): + memleak fix: free fields array (partial fix for #134839) + 2004-04-01 Ronald Bultje * docs/random/ds/0.9-suggested-changes: diff --git a/gst/gststructure.c b/gst/gststructure.c index eb48e2e13d..70f8fc4d46 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -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