r600g: don't leak driver const buffers
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 20 Jan 2016 23:52:24 +0000 (01:52 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 21 Jan 2016 20:36:24 +0000 (15:36 -0500)
commit0153ff8379be789262ad9cd636080d92b77becad
tree5e9cc3c5e90e941cdb7a9a7e2a36806df7833969
parent739ac3d39dacdede853d150b9903001524453330
r600g: don't leak driver const buffers

The buffers are referenced from r600_update_driver_const_buffers()
 -> r600_set_constant_buffer() -> u_upload_data(), but nothing
ever releases the reference. Similar case with driver_consts.
Found using valgrind.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/r600_pipe.c