st/mesa: fix context use-after-free problem in st_renderbuffer_delete()
authorBrian Paul <brianp@vmware.com>
Fri, 30 Nov 2012 17:11:54 +0000 (10:11 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Nov 2012 19:08:07 +0000 (12:08 -0700)
commit4cedb65a43ae81c7ac71e631c854b7404dd2b61b
tree991b9554d3a6b15be4894c111a46fb5e1b828d60
parent51223784d6a8ee93cf004c9ba87a7e4dcb7b3161
st/mesa: fix context use-after-free problem in st_renderbuffer_delete()

The use-after-free happened when the renderbuffer was shared by multiple
contexts and we tried to delete the renderbuffer using a context which
was previously deleted.

Note: this is a candidate for the stable branches.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_fbo.c