mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
gallium: Don't be pedantic about removing non exiting items from the table.
This commit is contained in:
parent
d1ca951cc4
commit
56ac9eb1f6
1 changed files with 6 additions and 2 deletions
|
|
@ -226,9 +226,13 @@ handle_table_remove(struct handle_table *ht,
|
|||
|
||||
index = handle - 1;
|
||||
object = ht->objects[index];
|
||||
assert(object);
|
||||
if(!object) {
|
||||
/* XXX: this warning may be noisy for legitimate use -- remove later */
|
||||
debug_warning("removing empty handle");
|
||||
return;
|
||||
}
|
||||
|
||||
if(object && ht->destroy)
|
||||
if(ht->destroy)
|
||||
ht->destroy(object);
|
||||
|
||||
ht->objects[index] = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue