r300g: fix invalid dereference in winsys
authorMarek Olšák <maraeo@gmail.com>
Fri, 18 Feb 2011 23:06:52 +0000 (00:06 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 18 Feb 2011 23:06:52 +0000 (00:06 +0100)
commite9e5380f22c230ea1276208baa40c3fe6482b296
tree1ebc5f9cf0ffdb2ccd22b07be436f0d7c69e53f1
parente16e70610c459721f4344dc6e61a8af1c2ad870d
r300g: fix invalid dereference in winsys

radeon_bo_unref may destroy the buffer, so call it after p_atomic_dec, not before.
src/gallium/winsys/radeon/drm/radeon_drm_cs.c