mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 03:18:08 +02:00
gallium/util: change assertion to conditional in util_bitmask_destroy()
If we fail to create a context in the VMware driver we call this function unconditionally to free a bunch of bit vectors. Instead of asserting on a null pointer, just no-op. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
68116dcd5a
commit
ef5a31fc06
1 changed files with 4 additions and 4 deletions
|
|
@ -320,9 +320,9 @@ util_bitmask_get_first_index(struct util_bitmask *bm)
|
|||
void
|
||||
util_bitmask_destroy(struct util_bitmask *bm)
|
||||
{
|
||||
assert(bm);
|
||||
|
||||
FREE(bm->words);
|
||||
FREE(bm);
|
||||
if (bm) {
|
||||
FREE(bm->words);
|
||||
FREE(bm);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue