[farsight2/master] rtpsession: Unref transmitter src/sink in dispose

Olivier Crête olivier.crete at collabora.co.uk
Fri Aug 7 13:43:40 PDT 2009


Unref element from g_object_get(), fixes leak
---
 gst/fsrtpconference/fs-rtp-session.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 3221a7c..5cb43de 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -447,6 +447,8 @@ _stop_transmitter_elem (gpointer key, gpointer value, gpointer elem_name)
 
   gst_element_set_locked_state (elem, TRUE);
   gst_element_set_state (elem, GST_STATE_NULL);
+
+  gst_object_unref (elem);
 }
 
 static void
-- 
1.5.6.5



More information about the farsight-commits mailing list