[Nice] [nice/master] Don't leak mainloop from gstsrc

Olivier Crête olivier.crete at collabora.co.uk
Wed Nov 5 14:01:15 PST 2008


---
 gst/gstnicesrc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gst/gstnicesrc.c b/gst/gstnicesrc.c
index a6b64af..e83eade 100644
--- a/gst/gstnicesrc.c
+++ b/gst/gstnicesrc.c
@@ -299,6 +299,10 @@ gst_nice_src_dispose (GObject *object)
     g_object_unref (src->agent);
   src->agent = NULL;
 
+  if (src->mainloop)
+    g_main_loop_unref (src->mainloop);
+  src->mainloop = NULL;
+
   GST_CALL_PARENT (G_OBJECT_CLASS, dispose, (object));
 }
 
-- 
1.5.6.5




More information about the Nice mailing list