lavapipe: Address sanitizer reports memory leak of lp_fence structs
With the introduction of KHR_timeline_semaphore in 94a49828 lavapipe address sanitizer reports memory leaks of lp_fence
structs.
In src/gallium/frontends/lavapipe/lvp_device.c:1186
the lp_fence is copied multiple times into the timelines and the lvp_fence
without using device->pscreen->fence_reference()
to increase/decrease the reference count of the fence. Also when destroying the timelines the reference counts are not decreased, which causes the fences to leak.
cc @zmike
Edited by Thomas Wagner