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 5813dbe..3cf7c79 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);