[farsight2/master] rtpsession: Fix leaking caps on signals after dispose
Olivier Crête
olivier.crete at collabora.co.uk
Tue Sep 1 16:35:32 PDT 2009
---
gst/fsrtpconference/fs-rtp-session.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 6bd2ed5..52fbf50 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -4051,7 +4051,10 @@ _send_caps_changed (GstPad *pad, GParamSpec *pspec, FsRtpSession *session)
g_return_if_fail (GST_CAPS_IS_SIMPLE(caps));
if (fs_rtp_session_has_disposed_enter (session, NULL))
+ {
+ gst_caps_unref (caps);
return;
+ }
FS_RTP_SESSION_LOCK (session);
@@ -4122,7 +4125,10 @@ _discovery_caps_changed (GstPad *pad, GParamSpec *pspec, FsRtpSession *session)
g_return_if_fail (GST_CAPS_IS_SIMPLE(caps));
if (fs_rtp_session_has_disposed_enter (session, NULL))
+ {
+ gst_caps_unref (caps);
return;
+ }
FS_RTP_SESSION_LOCK (session);
--
1.5.6.5
More information about the farsight-commits
mailing list