[farsight2/master] Fix a small leak in codec detection
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:30 PST 2008
---
gst/fsrtpconference/fs-rtp-discover-codecs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-discover-codecs.c b/gst/fsrtpconference/fs-rtp-discover-codecs.c
index 2f5ee76..30dcfcd 100644
--- a/gst/fsrtpconference/fs-rtp-discover-codecs.c
+++ b/gst/fsrtpconference/fs-rtp-discover-codecs.c
@@ -851,7 +851,7 @@ codec_cap_list_intersect (GList *list1, GList *list2)
} else {
item = g_slice_new0 (CodecCap);
- item->caps = intersection;
+ item->caps = gst_caps_ref (intersection);
if (rtp_caps1 && rtp_caps2)
{
@@ -884,10 +884,10 @@ codec_cap_list_intersect (GList *list1, GList *list2)
break;
}
} else {
- gst_caps_unref (intersection);
if (rtp_intersection)
gst_caps_unref (rtp_intersection);
}
+ gst_caps_unref (intersection);
}
}
--
1.5.6.5
More information about the farsight-commits
mailing list