mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
mesa: glsl: added null ptr check
This commit is contained in:
parent
6f1abb9c21
commit
91e1918f48
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,8 @@ slang_struct_destruct(slang_struct * stru)
|
|||
{
|
||||
slang_variable_scope_destruct(stru->fields);
|
||||
_slang_free(stru->fields);
|
||||
slang_struct_scope_destruct(stru->structs);
|
||||
if (stru->structs)
|
||||
slang_struct_scope_destruct(stru->structs);
|
||||
_slang_free(stru->structs);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue