<div dir="ltr">Reviewed-by: Chris Forbes <<a href="mailto:chrisforbes@google.com">chrisforbes@google.com</a>></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 13, 2016 at 12:03 PM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">These need to be freed too.<br>
<br>
Cc: "12.0" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>><br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
src/mesa/drivers/dri/i965/brw_context.c | 4 ++++<br>
1 file changed, 4 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c<br>
index 7bbc128..a5c6581 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_context.c<br>
+++ b/src/mesa/drivers/dri/i965/brw_context.c<br>
@@ -1100,6 +1100,10 @@ intelDestroyContext(__DRIcontext * driContextPriv)<br>
drm_intel_bo_unreference(brw->curbe.curbe_bo);<br>
if (brw->vs.base.scratch_bo)<br>
drm_intel_bo_unreference(brw->vs.base.scratch_bo);<br>
+ if (brw->tcs.base.scratch_bo)<br>
+ drm_intel_bo_unreference(brw->tcs.base.scratch_bo);<br>
+ if (brw->tes.base.scratch_bo)<br>
+ drm_intel_bo_unreference(brw->tes.base.scratch_bo);<br>
if (brw->gs.base.scratch_bo)<br>
drm_intel_bo_unreference(brw->gs.base.scratch_bo);<br>
if (brw->wm.base.scratch_bo)<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.8.3<br>
<br>
_______________________________________________<br>
mesa-stable mailing list<br>
<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-stable" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-stable</a><br>
</font></span></blockquote></div><br></div>