add NULL pointer check
This commit is contained in:
parent
d823f6e2cf
commit
a1ac104f02
|
@ -378,7 +378,7 @@ void BLI_table_gset_insert(TableGSet *ts, void *elem)
|
|||
|
||||
void BLI_table_gset_remove(TableGSet *ts, void *elem, GHashKeyFreeFP freefp)
|
||||
{
|
||||
if (!elem) {
|
||||
if (!elem || !ts) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue