OSDN Git Service

dri: attempt to actually refcount the __DRIDrawable
authorDave Airlie <airlied@redhat.com>
Thu, 16 Apr 2009 03:06:24 +0000 (13:06 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Apr 2009 03:06:24 +0000 (13:06 +1000)
commit3264352c577ce1d6681e70abd76624ede906df71
tree289c835a18c6beecbd83a956d20ad0c01dd36003
parent143b416af6662995059cd5209a750dbace78081c
dri: attempt to actually refcount the __DRIDrawable

valgrind was showing a race between the drawable getting destroyed
by the X resource freeing code, and the context getting destroyed
later and freeing the drawable.

However I've no idea if some other combination of things could cause
this code to leak.
src/mesa/drivers/dri/common/dri_util.c