diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-03-21 17:47:04 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-03-26 14:49:33 -0400 |
commit | bc8fd0624d7da549d1d76d02488d3fbe8e444b95 (patch) | |
tree | 0268526186b35bdcfbe39a5a823aa2c87f01432b | |
parent | 076cf029c54ac5d328a70d186897fa0678df387a (diff) | |
download | farstream-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.c | 2 |
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; } |