mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
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:
parent
20c89fa8bc
commit
3315f483bc
1 changed files with 1 additions and 1 deletions
|
@ -1115,8 +1115,8 @@ remove_clock_cache (GstClock * clock, GstClockTime time, GstClockID id,
|
||||||
if (!cache->clocks) {
|
if (!cache->clocks) {
|
||||||
gst_clock_id_unref (cache->remove_id);
|
gst_clock_id_unref (cache->remove_id);
|
||||||
gst_object_unref (cache->clock);
|
gst_object_unref (cache->clock);
|
||||||
g_free (cache);
|
|
||||||
clocks = g_list_remove (clocks, cache);
|
clocks = g_list_remove (clocks, cache);
|
||||||
|
g_free (cache);
|
||||||
}
|
}
|
||||||
G_UNLOCK (clocks_lock);
|
G_UNLOCK (clocks_lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue