mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i965/gen4: Fix memory leak each time compile_gs_prog() is called.
Commit 774fb90db3 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.
This commit is contained in:
parent
244db0855c
commit
59bfd66a61
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ static void compile_gs_prog( struct brw_context *brw,
|
|||
c.vue_map = brw->vs.prog_data->vue_map;
|
||||
c.nr_regs = (c.vue_map.num_slots + 1)/2;
|
||||
|
||||
mem_ctx = NULL;
|
||||
mem_ctx = ralloc_context(NULL);
|
||||
|
||||
/* Begin the compilation:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue