gallium: fix ref counting bug in pb_bufmgr

This was discovered by the pipe_reference api change.
This commit is contained in:
José Fonseca 2009-12-03 23:20:56 +01:00 committed by Roland Scheidegger
parent 35a15f0263
commit 13c647fa0d

View file

@ -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;
}