draw: fix memory leak introduced 7720ce32a
authorNeha Bhende <bhenden@vmware.com>
Thu, 16 May 2019 21:46:00 +0000 (15:46 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 17 May 2019 18:26:48 +0000 (12:26 -0600)
commit926a6a35cf731552033224840c5b3e3edfd0131c
tree5062651960c760666d3ae41138e0b9c517c6df39
parentd2aa65eb1892f7b300ac24560f9dbda6b600b5a7
draw: fix memory leak introduced 7720ce32a

We need to free memory allocation PrimitiveOffsets in draw_gs_destroy().
This fixes memory leak found while running piglit on windows.

Fixes: 7720ce32a ("draw: add support to tgsi paths for geometry streams. (v2)")
Tested with piglit

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/draw/draw_gs.c