diff options
author | José Fonseca <[email protected]> | 2009-12-03 23:20:56 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2009-12-03 23:20:56 +0100 |
commit | 13c647fa0d3e361efbb10a6d313bdc6bf7c890e8 (patch) | |
tree | cf5cc59c6660acc2cf6faf0f6035327593ffac36 /src | |
parent | 35a15f02634a31c1517363d91aaef8f190e24687 (diff) |
gallium: fix ref counting bug in pb_bufmgr
This was discovered by the pipe_reference api change.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c index f0c88a0ccbf..7b34c8e3578 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c @@ -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; } |