[telepathy-stream-engine/master] Fix leak on error

Olivier Crête olivier.crete at collabora.co.uk
Mon Oct 19 06:18:05 PDT 2009


---
 src/audiostream.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/audiostream.c b/src/audiostream.c
index c4dd007..7c3b97e 100644
--- a/src/audiostream.c
+++ b/src/audiostream.c
@@ -504,6 +504,7 @@ src_pad_added_cb (TfStream *stream, GstPad *pad, FsCodec *codec,
   if (GST_PAD_LINK_FAILED (gst_pad_link (pad, sinkpad)))
     {
       WARNING (self, "Could not link farsight pad to sink");
+      gst_object_unref (sinkpad);
       goto error_added;
     }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list