From: Peter Kjellerstedt Date: Mon, 12 May 2008 14:28:09 +0000 (+0000) Subject: gst/rtpmanager/gstrtpsession.c: Make sure to unref the rtpsession returned by gst_pad... X-Git-Tag: 1.19.3~507^2~20270 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11ebf3a6aa525480eb0ec49a2d57fab7b631ba7f;p=platform%2Fupstream%2Fgstreamer.git gst/rtpmanager/gstrtpsession.c: Make sure to unref the rtpsession returned by gst_pad_get_parent() to prevent a memor... 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. --- diff --git a/ChangeLog b/ChangeLog index e5c3374160..724a1f92c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-12 Peter Kjellerstedt + + * 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 * docs/plugins/gst-plugins-bad-plugins-sections.txt: diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 49a54fec8a..2afbf80253 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -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; }