mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radv: Fix leak in radv_amdgpu_winsys_destroy()
Fixes:fa97061a82("radv/winsys: Add binary syncobj ABI changes for timeline semaphores.") Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7866> (cherry picked from commit6ec0953e22)
This commit is contained in:
parent
1578dde278
commit
12c40b0477
2 changed files with 2 additions and 1 deletions
|
|
@ -445,7 +445,7 @@
|
|||
"description": "radv: Fix leak in radv_amdgpu_winsys_destroy()",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "fa97061a8235b64009d7897ecf20cc81258f3403"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -166,6 +166,7 @@ static void radv_amdgpu_winsys_destroy(struct radeon_winsys *rws)
|
|||
amdgpu_cs_destroy_syncobj(ws->dev, ws->syncobj[i]);
|
||||
free(ws->syncobj);
|
||||
|
||||
pthread_mutex_destroy(&ws->syncobj_lock);
|
||||
u_rwlock_destroy(&ws->global_bo_list_lock);
|
||||
ac_addrlib_destroy(ws->addrlib);
|
||||
amdgpu_device_deinitialize(ws->dev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue