svga: fix memory leak in svga_clear_texture()
authorNeha Bhende <bhenden@vmware.com>
Fri, 28 Oct 2016 18:29:11 +0000 (11:29 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Nov 2016 20:29:22 +0000 (14:29 -0600)
commit9a9627a791194a35ffd3573fbfa008cba0511a68
treef59e9665fb0d696e05e51795be78e6a6ebb202b7
parentd787ce7288d63923dd8211e117baea86faaf3539
svga: fix memory leak in svga_clear_texture()

Piglit tests which uses arb_clear_texture extension, have memory leak issue.
pipe_surface created in svga_clear_texture() was not deleted which happens to be
the cause for memory leak.

tested all arb_clear_texture-* piglit tests with valgrid.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_clear.c