gst/rtpmanager/gstrtpsession.c: Make sure to unref the rtpsession returned by gst_pad...
authorPeter Kjellerstedt <pkj@axis.com>
Mon, 12 May 2008 14:28:09 +0000 (14:28 +0000)
committerPeter Kjellerstedt <pkj@axis.com>
Mon, 12 May 2008 14:28:09 +0000 (14:28 +0000)
Original commit message from CVS:
* gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_query_send_rtcp_src):
Make sure to unref the rtpsession returned by gst_pad_get_parent() to
prevent a memory leak.

ChangeLog
gst/rtpmanager/gstrtpsession.c

index e5c33741603e7ae62f03403e778f0ccbb251777f..724a1f92c7fc79aaa76243b71f454699c1d3d3d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-05-12  Peter Kjellerstedt  <pkj@axis.com>
+
+       * gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_query_send_rtcp_src):
+       Make sure to unref the rtpsession returned by gst_pad_get_parent() to
+       prevent a memory leak.
+
+
 2008-05-12  Jan Schmidt  <Jan.Schmidt@sun.com>
 
        * docs/plugins/gst-plugins-bad-plugins-sections.txt:
index 49a54fec8a56013cbddf2012522175ce49e69139..2afbf802534f22370afa21123c20e5a01d53dbb1 100644 (file)
@@ -1528,6 +1528,9 @@ gst_rtp_session_query_send_rtcp_src (GstPad * pad, GstQuery * query)
       /* other queries simply fail for now */
       break;
   }
+
+  gst_object_unref (rtpsession);
+
   return ret;
 }