[farsight2/master] Fix little leak

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


---
 gst/fsrtpconference/fs-rtp-stream.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index 8594b9c..302b214 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -312,6 +312,8 @@ fs_rtp_stream_get_property (GObject *object,
           g_object_get (substream_item->data, "codec", &codec, NULL);
           if (!_codec_list_has_codec (codeclist, codec))
             codeclist = g_list_append (codeclist, codec);
+          else
+            fs_codec_destroy (codec);
         }
 
         g_value_take_boxed (value, codeclist);
-- 
1.5.6.5




More information about the farsight-commits mailing list