netclientclock: Free data after removing it from the list

Does not matter here but makes Coverity more happy. It can't
know that g_list_remove() only looks at the pointer value but
does not dereference it.

CID 1348454
This commit is contained in:
Sebastian Dröge 2016-01-15 09:02:42 +01:00
parent 20c89fa8bc
commit 3315f483bc

View file

@ -1115,8 +1115,8 @@ remove_clock_cache (GstClock * clock, GstClockTime time, GstClockID id,
if (!cache->clocks) {
gst_clock_id_unref (cache->remove_id);
gst_object_unref (cache->clock);
g_free (cache);
clocks = g_list_remove (clocks, cache);
g_free (cache);
}
G_UNLOCK (clocks_lock);