aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-04-20 00:00:52 -0700
committerVinson Lee <[email protected]>2010-04-20 00:00:52 -0700
commit49ba607abab17cc07e9f163f5415636474fd7940 (patch)
treed7eee6e49e75874e6c4017e03f47af986e5d54e3 /src/gallium/auxiliary
parent11913e97987ee116e12299d57d85c8676d892120 (diff)
draw llvm: Move dereference of pointer after NULL check.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index 0d8f8807b24..d490d3325c2 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -103,12 +103,14 @@ boolean draw_init(struct draw_context *draw)
void draw_destroy( struct draw_context *draw )
{
- struct pipe_context *pipe = draw->pipe;
+ struct pipe_context *pipe;
int i, j;
if (!draw)
return;
+ pipe = draw->pipe;
+
/* free any rasterizer CSOs that we may have created.
*/
for (i = 0; i < 2; i++) {