[farsight2/master] Don't leak config param name/value when removing it

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:04 PST 2008


---
 gst-libs/gst/farsight/fs-codec.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-codec.c b/gst-libs/gst/farsight/fs-codec.c
index 7dfed6e..ea86b78 100644
--- a/gst-libs/gst/farsight/fs-codec.c
+++ b/gst-libs/gst/farsight/fs-codec.c
@@ -674,6 +674,8 @@ void
 fs_codec_remove_optional_parameter (FsCodec *codec,
     FsCodecParameter *param)
 {
+  g_free (param->name);
+  g_free (param->value);
   g_slice_free (FsCodecParameter, param);
   codec->optional_params = g_list_remove (codec->optional_params, param);
 }
-- 
1.5.6.5




More information about the farsight-commits mailing list