mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +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,6 +115,7 @@ sp_create_tile_cache( struct pipe_context *pipe )
|
||||||
void
|
void
|
||||||
sp_destroy_tile_cache(struct softpipe_tile_cache *tc)
|
sp_destroy_tile_cache(struct softpipe_tile_cache *tc)
|
||||||
{
|
{
|
||||||
|
if (tc) {
|
||||||
uint pos;
|
uint pos;
|
||||||
|
|
||||||
for (pos = 0; pos < NUM_ENTRIES; pos++) {
|
for (pos = 0; pos < NUM_ENTRIES; pos++) {
|
||||||
|
|
@ -126,6 +127,7 @@ sp_destroy_tile_cache(struct softpipe_tile_cache *tc)
|
||||||
|
|
||||||
FREE( tc );
|
FREE( tc );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue