Commit 3d3685d3 authored by Kenneth Graunke's avatar Kenneth Graunke

iris: Fix memory leak of SO targets

We need to pitch these on context destroy.
parent d65819f0
......@@ -5624,6 +5624,10 @@ iris_destroy_state(struct iris_context *ice)
}
free(ice->state.genx);
for (int i = 0; i < 4; i++) {
pipe_so_target_reference(&ice->state.so_target[i], NULL);
}
for (unsigned i = 0; i < ice->state.framebuffer.nr_cbufs; i++) {
pipe_surface_reference(&ice->state.framebuffer.cbufs[i], NULL);
}
......
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