mesa: Don't leak gl_context::BeginEnd at context destruction
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 10 Apr 2013 14:50:49 +0000 (07:50 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 12 Apr 2013 23:24:48 +0000 (16:24 -0700)
commit1faaa411c7039b8b6e2118d8621ca940c674c2d4
treeaf69ef558d498fd07ce181e01576d74dc03c62b8
parent6e06550e4e0682c616fc0228beee419618421f2c
mesa: Don't leak gl_context::BeginEnd at context destruction

The other dispatch tables (Exec and Save) are freed, but BeginEnd is
never freed.  This was found by inspection why investigating the leak of
shared state in _mesa_initialize_context.

NOTE: This is a candidate for stable branches

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/context.c