From: Eric Anholt Date: Sun, 14 Dec 2014 00:37:28 +0000 (-0800) Subject: vc4: Fix a leak of the simulator's exec BO's actual vc4_bo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f519c3bff14dfc4555c511a4d3709affa056d688;p=mesa.git vc4: Fix a leak of the simulator's exec BO's actual vc4_bo. --- 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) {