On 12/03/2013 09:48 PM, Brian Paul wrote:
On 11/26/2013 10:59 PM, Siavash Eliasi wrote:
---
src/mesa/main/imports.c| 7 +--
src/mesa/math/m_matrix.c | 13 +
src/mesa/program/prog_parameter.c | 3 +--
src/mesa/state_tracker/st_cb_texture.c
On 11/26/2013 10:59 PM, Siavash Eliasi wrote:
---
src/mesa/main/imports.c| 7 +--
src/mesa/math/m_matrix.c | 13 +
src/mesa/program/prog_parameter.c | 3 +--
src/mesa/state_tracker/st_cb_texture.c | 6 ++
src/mesa/swrast/s_texture.c
This avoids accidental dereferencing of an invalid memory address by
_mesa_align_free when passed pointer is NULL.
Also cleaned up different places where it was used, to avoid double check of
passed pointer.
Now it is safe to pass NULL pointer to this function and expect same behavior
like fre
---
src/mesa/main/imports.c| 7 +--
src/mesa/math/m_matrix.c | 13 +
src/mesa/program/prog_parameter.c | 3 +--
src/mesa/state_tracker/st_cb_texture.c | 6 ++
src/mesa/swrast/s_texture.c| 7 +++
src/mesa/tnl/t_vertex.c