softpipe: Check for NULL pointer in sp_destroy_tile_cache().

This commit is contained in:
Michal Krol
2010-07-22 18:32:50 +02:00
parent a0fc83b277
commit 8122baf8ba

View File

@@ -115,6 +115,7 @@ sp_create_tile_cache( struct pipe_context *pipe )
void
sp_destroy_tile_cache(struct softpipe_tile_cache *tc)
{
if (tc) {
uint pos;
for (pos = 0; pos < NUM_ENTRIES; pos++) {
@@ -125,6 +126,7 @@ sp_destroy_tile_cache(struct softpipe_tile_cache *tc)
}
FREE( tc );
}
}