summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/crocus/crocus_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/crocus/crocus_state.c')
-rw-r--r--src/gallium/drivers/crocus/crocus_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/crocus/crocus_state.c b/src/gallium/drivers/crocus/crocus_state.c
index 33527fca9a6..170f207c28b 100644
--- a/src/gallium/drivers/crocus/crocus_state.c
+++ b/src/gallium/drivers/crocus/crocus_state.c
@@ -8196,10 +8196,11 @@ crocus_upload_compute_state(struct crocus_context *ice,
static void
crocus_destroy_state(struct crocus_context *ice)
{
-
pipe_resource_reference(&ice->draw.draw_params.res, NULL);
pipe_resource_reference(&ice->draw.derived_draw_params.res, NULL);
+ free(ice->state.genx);
+
for (int i = 0; i < 4; i++) {
pipe_so_target_reference(&ice->state.so_target[i], NULL);
}