diff options
author | Robert Ellison <papillo@vmware.com> | 2009-05-08 14:42:47 -0600 |
---|---|---|
committer | Robert Ellison <papillo@vmware.com> | 2009-05-08 16:47:59 -0600 |
commit | fc6d89145df6fc7a1c2ce648b474c3f203ca87c7 (patch) | |
tree | 3209938c05e82061f85a76e1fd79992489350b22 /src/mesa/tnl/t_vb_texmat.c | |
parent | 44a4abfd4f8695809eaec07df8eeb191d6e017d7 (diff) |
i965: fix memory leak in context/renderbuffer region management
A temporary change to the intelMakeCurrent() function to make
it work with frame buffer objects causes the static regions
associated with the context (the front_region, back_region,
and depth_region) to take on an additional reference, with
no corresponding release. This causes a memory leak if a
program repeatedly creates and destroys contexts.
The fix is the corresponding hack, to unreference these
regions when the context is deleted, but only if the
framebuffer objects are still present and the same
regions are still referenced within.
Both sets of code have comment blocks referring to each
other.
Diffstat (limited to 'src/mesa/tnl/t_vb_texmat.c')
0 files changed, 0 insertions, 0 deletions