mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
gallium: fix ref counting bug in pb_bufmgr
This was discovered by the pipe_reference api change.
This commit is contained in:
parent
35a15f0263
commit
13c647fa0d
1 changed files with 1 additions and 4 deletions
|
|
@ -293,11 +293,8 @@ pb_cache_manager_create_buffer(struct pb_manager *_mgr,
|
|||
if(buf) {
|
||||
LIST_DEL(&buf->head);
|
||||
pipe_mutex_unlock(mgr->mutex);
|
||||
#if 0
|
||||
/* XXX this didn't do anything right??? */
|
||||
/* Increase refcount */
|
||||
pb_reference((struct pb_buffer**)&buf, &buf->base);
|
||||
#endif
|
||||
pipe_reference(NULL, &buf->base.base.reference);
|
||||
return &buf->base;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue