summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-12-03 23:20:56 +0100
committerRoland Scheidegger <[email protected]>2009-12-03 23:20:56 +0100
commit13c647fa0d3e361efbb10a6d313bdc6bf7c890e8 (patch)
treecf5cc59c6660acc2cf6faf0f6035327593ffac36
parent35a15f02634a31c1517363d91aaef8f190e24687 (diff)
gallium: fix ref counting bug in pb_bufmgr
This was discovered by the pipe_reference api change.
-rw-r--r--src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c5
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;
}