st/mesa: fix sampler_view REALLOC/FREE macro mix-up
authorBrian Paul <brianp@vmware.com>
Thu, 10 Apr 2014 01:22:11 +0000 (19:22 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 10 Apr 2014 13:53:05 +0000 (07:53 -0600)
commitf9985db0bc1f1fa217a0fa30a608cb78ccd79a50
tree0bf457ffdba3a7a09c4154d1fd0784727964f802
parent87502bbcd7311a7eecb5a9ef82b4770253a62530
st/mesa: fix sampler_view REALLOC/FREE macro mix-up

We were using REALLOC() from u_memory.h but FREE() from imports.h.
This mismatch caused us to trash the heap on Windows after we
deleted a texture object.

This fixes a regression from commit 6c59be7776e4d.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_texture.c
src/mesa/state_tracker/st_texture.h