mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
softpipe: Check for NULL pointer in sp_destroy_tile_cache().
This commit is contained in:
parent
a0fc83b277
commit
8122baf8ba
1 changed files with 10 additions and 8 deletions
|
|
@ -115,16 +115,18 @@ sp_create_tile_cache( struct pipe_context *pipe )
|
|||
void
|
||||
sp_destroy_tile_cache(struct softpipe_tile_cache *tc)
|
||||
{
|
||||
uint pos;
|
||||
if (tc) {
|
||||
uint pos;
|
||||
|
||||
for (pos = 0; pos < NUM_ENTRIES; pos++) {
|
||||
/*assert(tc->entries[pos].x < 0);*/
|
||||
}
|
||||
if (tc->transfer) {
|
||||
tc->pipe->transfer_destroy(tc->pipe, tc->transfer);
|
||||
}
|
||||
for (pos = 0; pos < NUM_ENTRIES; pos++) {
|
||||
/*assert(tc->entries[pos].x < 0);*/
|
||||
}
|
||||
if (tc->transfer) {
|
||||
tc->pipe->transfer_destroy(tc->pipe, tc->transfer);
|
||||
}
|
||||
|
||||
FREE( tc );
|
||||
FREE( tc );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue