summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2013-03-21 17:47:04 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-03-26 14:49:33 -0400
commitbc8fd0624d7da549d1d76d02488d3fbe8e444b95 (patch)
tree0268526186b35bdcfbe39a5a823aa2c87f01432b
parent076cf029c54ac5d328a70d186897fa0678df387a (diff)
downloadfarstream-bc8fd0624d7da549d1d76d02488d3fbe8e444b95.tar.gz
fs-rtp-substream: Don't leak caps on error
Based on patch from Havard Graff
-rw-r--r--gst/fsrtpconference/fs-rtp-substream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/fsrtpconference/fs-rtp-substream.c b/gst/fsrtpconference/fs-rtp-substream.c
index c6768cfc..e0156758 100644
--- a/gst/fsrtpconference/fs-rtp-substream.c
+++ b/gst/fsrtpconference/fs-rtp-substream.c
@@ -1332,6 +1332,8 @@ _rtpbin_pad_blocked_callback (GstPad *pad, GstPadProbeInfo *info,
else
fs_session_emit_error (FS_SESSION (substream->priv->session),
FS_ERROR_CONSTRUCTION, error->message);
+ if (caps)
+ gst_caps_unref (caps);
goto out;
}