Module: Mesa Branch: master Commit: 49ba607abab17cc07e9f163f5415636474fd7940 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=49ba607abab17cc07e9f163f5415636474fd7940
Author: Vinson Lee <[email protected]> Date: Tue Apr 20 00:00:52 2010 -0700 draw llvm: Move dereference of pointer after NULL check. --- src/gallium/auxiliary/draw/draw_context.c | 4 +++- 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 0d8f880..d490d33 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++) { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
