summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_context.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-12-14 20:29:10 -0800
committerEric Anholt <[email protected]>2014-12-14 23:12:11 -0800
commit80ed075e6033eba68b034fbd748da4e0b82a27f4 (patch)
treec8968de37e7b1bada2ac8cf1cf382752ecd03d3c /src/gallium/drivers/vc4/vc4_context.c
parent4da9e3d80556253a05179c398ffb1c3120fa3089 (diff)
vc4: Fix leak of the compiled shader programs in the cache.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c
index b26c07127a9..3535ebbb3ed 100644
--- a/src/gallium/drivers/vc4/vc4_context.c
+++ b/src/gallium/drivers/vc4/vc4_context.c
@@ -431,6 +431,8 @@ vc4_context_destroy(struct pipe_context *pctx)
util_slab_destroy(&vc4->transfer_pool);
+ vc4_program_fini(pctx);
+
ralloc_free(vc4);
}