mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 03:30:10 +01:00
ilo: avoid potential dangling pointer dereference
Set pipe_draw_info to NULL after draw_vbo().
This commit is contained in:
parent
c74a7eb9c5
commit
e071812e46
1 changed files with 3 additions and 0 deletions
|
|
@ -729,6 +729,9 @@ ilo_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
|
|||
ilo->dirty = 0x0;
|
||||
hw3d->new_batch = false;
|
||||
|
||||
/* avoid dangling pointer reference */
|
||||
ilo->draw = NULL;
|
||||
|
||||
update_prim_count(hw3d, prim_generated, prim_emitted);
|
||||
|
||||
if (ilo_debug & ILO_DEBUG_NOCACHE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue