util: added pipe_surface_release() function
authorBrian Paul <brianp@vmware.com>
Fri, 30 Nov 2012 17:10:25 +0000 (10:10 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Nov 2012 19:08:07 +0000 (12:08 -0700)
commit51223784d6a8ee93cf004c9ba87a7e4dcb7b3161
treefcea139431d2f36e22917cb1fc24065ce756a330
parentc73245882c7ff1277b190b97f093f7b423a22f10
util: added pipe_surface_release() function

To fix a pipe_context::surface_destroy() use-after-free problem.
We previously added pipe_sampler_view_release() for similar reasons.

Note: this is a candidate for the stable branches.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_inlines.h