From bc8fd0624d7da549d1d76d02488d3fbe8e444b95 Mon Sep 17 00:00:00 2001
From: Olivier CrĂȘte <olivier.crete@collabora.com>
Date: Thu, 21 Mar 2013 21:47:04 +0000
Subject: fs-rtp-substream: Don't leak caps on error
Based on patch from Havard Graff
---
diff --git a/gst/fsrtpconference/fs-rtp-substream.c b/gst/fsrtpconference/fs-rtp-substream.c
index c6768cf..e015675 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;
}
--
cgit v0.9.0.3