mesa: add NULL checking to free_shared_state()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Jul 2017 01:11:00 +0000 (11:11 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 8 Aug 2017 05:56:12 +0000 (15:56 +1000)
commitda10065d2b9b78fcb9446a4626343352cf30add0
treea0a1fbdb3f829bca78c9ec10c6d5dfe17cb9028b
parent8614679e78186482cc7ff84af83acdd29e359086
mesa: add NULL checking to free_shared_state()

This will allow us to call this function from
_mesa_alloc_shared_state() in the case that we run out of memory
part way through allocating the state.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/shared.c
src/mesa/main/texturebindless.c