rtpdec: fix clock leak
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 16 May 2016 14:18:37 +0000 (16:18 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 17 May 2016 06:59:08 +0000 (09:59 +0300)
gst_system_clock_obtain() returns a new ref.

https://bugzilla.gnome.org/show_bug.cgi?id=766521

gst/rtsp/gstrtpdec.c

index 5813dbe67e20daa46b031566522bf154587d18a1..3cf7c791344b6fe029122a72233919a586323073 100644 (file)
@@ -357,6 +357,7 @@ gst_rtp_dec_finalize (GObject * object)
 
   rtpdec = GST_RTP_DEC (object);
 
+  gst_object_unref (rtpdec->provided_clock);
   g_slist_foreach (rtpdec->sessions, (GFunc) free_session, NULL);
   g_slist_free (rtpdec->sessions);