OSDN Git Service

mesa: fix double-freeing of dispatch tables inside glBegin/End.
authorBrian Paul <brianp@vmware.com>
Thu, 15 May 2014 21:49:14 +0000 (15:49 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 16 May 2014 13:14:57 +0000 (07:14 -0600)
commitef6b6658f91bd5871739bdb71a08042f26abe389
tree5eeb0ac83b2b5c0f9fcd8429c74835a3db89a8a1
parent730bc124c39f4a2ed9fea53959676bca150ae4d3
mesa: fix double-freeing of dispatch tables inside glBegin/End.

We allocate dispatch tables for BeginEnd and OutsideBeginEnd.  But
when we destroy the context we were freeing the BeginEnd and Exec
tables.  If Exec==BeginEnd we did a double-free.  This would happen
if the context was destroyed while inside a glBegin/End pair.  Now
free the BeginEnd and OutsideBeginEnd pointers.

Cc: "10.1", "10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/mesa/main/context.c