i965/gen4: Fix memory leak each time compile_gs_prog() is called.
authorEric Anholt <eric@anholt.net>
Fri, 16 Nov 2012 17:56:03 +0000 (09:56 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 26 Nov 2012 02:25:26 +0000 (18:25 -0800)
commit59bfd66a614177320817a97e1dadfcfcf3b9b092
treecb50a71bb636d0aa9ae18bd0f7f6635c6ab58336
parent244db0855c3c604211d7a868240ec927610881dd
i965/gen4: Fix memory leak each time compile_gs_prog() is called.

Commit 774fb90db3e83d5e7326b7a72e05ce805c306b24 introduced a ralloc context to
each user of struct brw_compile, but for this one a NULL context was used,
causing the later ralloc_free(mem_ctx) to not do anything.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55175
NOTE: This is a candidate for the stable branches.
src/mesa/drivers/dri/i965/brw_gs.c