From: José Fonseca Date: Thu, 3 Dec 2009 22:20:56 +0000 (+0100) Subject: gallium: fix ref counting bug in pb_bufmgr X-Git-Tag: 062012170305~15615^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13c647fa0d3e361efbb10a6d313bdc6bf7c890e8;p=profile%2Fivi%2Fmesa.git gallium: fix ref counting bug in pb_bufmgr This was discovered by the pipe_reference api change. --- diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c index f0c88a0..7b34c8e 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; }