ristsrc: rtxbin may be null in finalize

This commit is contained in:
Nicolas Dufresne 2019-05-03 16:52:02 -04:00 committed by Nicolas Dufresne
parent e914abd402
commit 4bba95ead2

View file

@ -1136,9 +1136,8 @@ gst_rist_src_finalize (GObject * object)
}
g_ptr_array_free (src->bonds, TRUE);
if (src->jitterbuffer)
gst_object_unref (src->jitterbuffer);
gst_object_unref (src->rtxbin);
g_clear_object (&src->jitterbuffer);
g_clear_object (&src->rtxbin);
g_mutex_unlock (&src->bonds_lock);
g_mutex_clear (&src->bonds_lock);