[farsight2/master] rtp: Fix caps leak in discovery

Olivier Crête olivier.crete at collabora.co.uk
Tue Jul 21 17:26:50 PDT 2009


---
 gst/fsrtpconference/fs-rtp-discover-codecs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-discover-codecs.c b/gst/fsrtpconference/fs-rtp-discover-codecs.c
index 5444ac9..4f32ba2 100644
--- a/gst/fsrtpconference/fs-rtp-discover-codecs.c
+++ b/gst/fsrtpconference/fs-rtp-discover-codecs.c
@@ -917,8 +917,10 @@ codec_cap_list_intersect (GList *list1, GList *list2)
               copy_element_list (codec_cap2->element_list2));
 
           intersection_list = g_list_append (intersection_list, item);
-          if (rtp_intersection)
+          if (rtp_intersection) {
+            gst_caps_unref (intersection);
             break;
+          }
         }
       } else {
         if (rtp_intersection)
-- 
1.5.6.5




More information about the farsight-commits mailing list