rtpdec: fix clock leak

gst_system_clock_obtain() returns a new ref.

https://bugzilla.gnome.org/show_bug.cgi?id=766521
This commit is contained in:
Guillaume Desmottes 2016-05-16 16:18:37 +02:00 committed by Sebastian Dröge
parent 21e281feea
commit a6c4763b42

View file

@ -357,6 +357,7 @@ gst_rtp_dec_finalize (GObject * object)
rtpdec = GST_RTP_DEC (object); rtpdec = GST_RTP_DEC (object);
gst_object_unref (rtpdec->provided_clock);
g_slist_foreach (rtpdec->sessions, (GFunc) free_session, NULL); g_slist_foreach (rtpdec->sessions, (GFunc) free_session, NULL);
g_slist_free (rtpdec->sessions); g_slist_free (rtpdec->sessions);