i915g: fix use after free
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Mar 2011 22:20:44 +0000 (23:20 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 12 Mar 2011 19:31:30 +0000 (20:31 +0100)
commit06713a40798d97aa520b119731418ff16a92e4ba
treeeb63474c3734b60160208ac1d4937dd41af699a7
parent1a79064da12a8be71dca7656e5eebc4b85d2b35f
i915g: fix use after free

Pipe templates should be copied if still needed after the create
call completes.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_state.c