i915g: fixup context desdruction

Reported-by: Christopher Egert <cme3000@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2011-07-13 00:09:36 +02:00
parent f2fd0d6304
commit ed570cb5e5
1 changed files with 2 additions and 2 deletions

View File

@ -99,11 +99,11 @@ static void i915_destroy(struct pipe_context *pipe)
struct i915_context *i915 = i915_context(pipe);
int i;
draw_destroy(i915->draw);
if (i915->blitter)
util_blitter_destroy(i915->blitter);
draw_destroy(i915->draw);
if(i915->batch)
i915->iws->batchbuffer_destroy(i915->batch);