mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
draw llvm: Move dereference of pointer after NULL check.
This commit is contained in:
parent
11913e9798
commit
49ba607aba
1 changed files with 3 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue