summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glsl-optimizer/src/mesa/program/prog_hash_table.c
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glsl-optimizer/src/mesa/program/prog_hash_table.c')
-rw-r--r--3rdparty/bgfx/3rdparty/glsl-optimizer/src/mesa/program/prog_hash_table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glsl-optimizer/src/mesa/program/prog_hash_table.c b/3rdparty/bgfx/3rdparty/glsl-optimizer/src/mesa/program/prog_hash_table.c
index 3b2152b69e2..680699b567f 100644
--- a/3rdparty/bgfx/3rdparty/glsl-optimizer/src/mesa/program/prog_hash_table.c
+++ b/3rdparty/bgfx/3rdparty/glsl-optimizer/src/mesa/program/prog_hash_table.c
@@ -84,6 +84,8 @@ hash_table_ctor(unsigned num_buckets, hash_func_t hash,
void
hash_table_dtor(struct hash_table *ht)
{
+ if (!ht)
+ return;
hash_table_clear(ht);
free(ht);
}