diff options
author | Peter Kjellerstedt <pkj@axis.com> | 2008-05-12 14:28:09 +0000 |
---|---|---|
committer | Peter Kjellerstedt <pkj@axis.com> | 2008-05-12 14:28:09 +0000 |
commit | 11ebf3a6aa525480eb0ec49a2d57fab7b631ba7f (patch) | |
tree | 67e4aa13176a0b66a7a68e6bb7bd394cee049d43 /gst/rtpmanager | |
parent | f315cbd74ec571576a8e777446c915d0643ec5e2 (diff) | |
download | gst-plugins-bad-11ebf3a6aa525480eb0ec49a2d57fab7b631ba7f.tar.gz gst-plugins-bad-11ebf3a6aa525480eb0ec49a2d57fab7b631ba7f.tar.bz2 gst-plugins-bad-11ebf3a6aa525480eb0ec49a2d57fab7b631ba7f.zip |
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.
Diffstat (limited to 'gst/rtpmanager')
-rw-r--r-- | gst/rtpmanager/gstrtpsession.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 49a54fec..2afbf802 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; } |