[0.11] gst-plugins-bad: rtpmux: Don't leak gvalue from iterator

Olivier Crête tester at kemper.freedesktop.org
Wed Jan 25 09:05:45 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: 73d57f1848ea2dd2caffe243b76dc60ace54c9cd
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=73d57f1848ea2dd2caffe243b76dc60ace54c9cd

Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Wed Jan 25 15:43:01 2012 +0100

rtpmux: Don't leak gvalue from iterator

---

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

diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 4a2c56c..939d18e 100644
--- a/gst/rtpmux/gstrtpmux.c
+++ b/gst/rtpmux/gstrtpmux.c
@@ -215,6 +215,7 @@ gst_rtp_mux_src_event_real (GstRTPMux * rtp_mux, GstEvent * event)
       case GST_ITERATOR_OK:
         gst_event_ref (event);
         result |= gst_pad_push_event (g_value_get_object (&item), event);
+        g_value_reset (&item);
         break;
       case GST_ITERATOR_RESYNC:
         gst_iterator_resync (iter);



More information about the gstreamer-commits mailing list