mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 07:30:22 +01:00
bufmgr_fake: Keep the bufmgr lock held while freeing a block.
This commit is contained in:
parent
23e0ca2ebb
commit
f7643b96e9
1 changed files with 1 additions and 1 deletions
|
|
@ -632,11 +632,11 @@ dri_fake_bo_unreference(dri_bo *bo)
|
|||
|
||||
_glthread_LOCK_MUTEX(bufmgr_fake->mutex);
|
||||
if (--bo_fake->refcount == 0) {
|
||||
_glthread_UNLOCK_MUTEX(bufmgr_fake->mutex);
|
||||
/* No remaining references, so free it */
|
||||
if (bo_fake->block)
|
||||
free_block(bufmgr_fake, bo_fake->block);
|
||||
free_backing_store(bo);
|
||||
_glthread_UNLOCK_MUTEX(bufmgr_fake->mutex);
|
||||
free(bo);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue