Commit b6778c9f authored by Neha Bhende's avatar Neha Bhende Committed by Juan Suárez Romero

draw: fix memory leak introduced 7720ce32

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

Fixes: 7720ce32 ("draw: add support to tgsi paths for geometry streams. (v2)")

Tested with piglit
Reviewed-by: Brian Paul's avatarBrian Paul <>
Reviewed-by: Charmaine Lee's avatarCharmaine Lee <>
Reviewed-by: default avatarDave Airlie <>
(cherry picked from commit 926a6a35)
parent 5d05324e
......@@ -753,8 +753,10 @@ void draw_gs_destroy( struct draw_context *draw )
int i;
if (draw->gs.tgsi.machine) {
for (i = 0; i < TGSI_MAX_VERTEX_STREAMS; i++)
for (i = 0; i < TGSI_MAX_VERTEX_STREAMS; i++) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment