r600g: fix memory leaks running gears.
authorDave Airlie <airlied@redhat.com>
Fri, 13 Aug 2010 00:16:29 +0000 (10:16 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Aug 2010 00:22:46 +0000 (10:22 +1000)
commitf2804e70623c4c71e5758a24d695f8d6b74bf6d7
tree2e6355d90671644b19ef4d2685bc5c116045f581
parent26c042c30aa3a2ec7eaf1a2b766bc4fd2bfcdb84
r600g: fix memory leaks running gears.

I noticed gears memory usage was heading skywards, some r600 "states"
aren't properly refcounted, and the ctx->state is never freed.
src/gallium/drivers/r600/r600_state.c
src/gallium/winsys/r600/drm/radeon_ctx.c