diff --git a/libs/gst/net/gstnetclientclock.c b/libs/gst/net/gstnetclientclock.c index 245fb78223..e9777ba469 100644 --- a/libs/gst/net/gstnetclientclock.c +++ b/libs/gst/net/gstnetclientclock.c @@ -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);