summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-12-13 16:37:28 -0800
committerEric Anholt <[email protected]>2014-12-14 23:10:35 -0800
commitf519c3bff14dfc4555c511a4d3709affa056d688 (patch)
treef72cde2098ea41b140ad4cd2b4363bbd74cde2a3 /src
parent6c3115af852834476a451688734c07f0dbe13ec9 (diff)
vc4: Fix a leak of the simulator's exec BO's actual vc4_bo.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_simulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_simulator.c b/src/gallium/drivers/vc4/vc4_simulator.c
index 1040ae8f5c4..bb4a669e8f5 100644
--- a/src/gallium/drivers/vc4/vc4_simulator.c
+++ b/src/gallium/drivers/vc4/vc4_simulator.c
@@ -173,6 +173,7 @@ vc4_simulator_flush(struct vc4_context *vc4, struct drm_vc4_submit_cl *args)
if (ret)
return ret;
+ vc4_bo_unreference(&exec.exec_bo->bo);
free(exec.exec_bo);
if (ctex && ctex->bo->simulator_winsys_map) {