rtspsrc: fix major memory leak when playing back rtsp video streams
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 4 Dec 2009 11:14:03 +0000 (11:14 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 4 Dec 2009 11:14:03 +0000 (11:14 +0000)
Don't forget to unref QoS, navigation and latency events when
dropping them.

gst/rtsp/gstrtspsrc.c

index fb939b6..f3ba326 100644 (file)
@@ -1699,6 +1699,7 @@ gst_rtspsrc_handle_internal_src_event (GstPad * pad, GstEvent * event)
     case GST_EVENT_NAVIGATION:
     case GST_EVENT_LATENCY:
     default:
+      gst_event_unref (event);
       res = TRUE;
       break;
   }