st/mesa: use pipe_sampler_view_release()
authorJonathan Liu <net147@gmail.com>
Sat, 14 Dec 2013 14:15:00 +0000 (07:15 -0700)
committerBrian Paul <brianp@vmware.com>
Sun, 22 Dec 2013 14:07:07 +0000 (07:07 -0700)
commit670be71bd801fea876f7512865ed5f54340da9be
tree12f2d92fd80c80892e9f756a1311b9dfde7ca364
parentb094b3b9f4c7b40056c31e3480ab7dc530da56e7
st/mesa: use pipe_sampler_view_release()

This fixes a crash where old_view->context was already freed in the
pipe_sampler_view_reference function contained in
src/gallium/auxiliary/utils/u_inlines.h. As a result, the
sampler_view_destroy function pointer contained 0xfeeefeee indicating
freed heap memory.

Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Jonathan Liu <net147@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_texture.c