diff options
author | Keith Whitwell <[email protected]> | 2010-01-06 17:13:37 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-01-06 17:13:37 +0000 |
commit | b08583da468ee186b43ea678f8d33fb7df3ab372 (patch) | |
tree | 7c770b29a513c0e82881315159cc93f4d3d0ef10 /src/gallium/drivers/llvmpipe/lp_context.c | |
parent | 601969c58729e26db6a33645a6a9ddb0b6ea2b92 (diff) |
llvmpipe: fix double free
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_context.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_context.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c index 0457ccc8a94..696a9d5f6a8 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.c +++ b/src/gallium/drivers/llvmpipe/lp_context.c @@ -53,12 +53,11 @@ static void llvmpipe_destroy( struct pipe_context *pipe ) struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); uint i; + /* This will also destroy llvmpipe->setup: + */ if (llvmpipe->draw) draw_destroy( llvmpipe->draw ); - if (llvmpipe->setup) - lp_setup_destroy( llvmpipe->setup ); - for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) { pipe_surface_reference(&llvmpipe->framebuffer.cbufs[i], NULL); } |