summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-07-04 10:37:31 -0700
committerKenneth Graunke <[email protected]>2013-07-09 14:09:28 -0700
commit351d2add6218947a142e611cb0a1121cd19242e1 (patch)
treef1cd273d461299a518e75641842e83b59c4a9873 /src/mesa
parente3c2bb1eb4ef73c1c9576f0d5b747605b5de47ef (diff)
i965: Free brw, not intel.
Things worked out in the past because both brw and intel share the same memory address (by virtue of intel being the first member of brw). However, brw is what actually gets rzalloc'd (brw_context.c:285), so freeing that seems safer and more obvious. Signed-off-by: Kenneth Graunke <[email protected]> Acked-by: Chris Forbes <[email protected]> Acked-by: Paul Berry <[email protected]> Acked-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c
index c9a5897ec5f..fee68b60c9b 100644
--- a/src/mesa/drivers/dri/i965/intel_context.c
+++ b/src/mesa/drivers/dri/i965/intel_context.c
@@ -639,7 +639,7 @@ intelDestroyContext(__DRIcontext * driContextPriv)
/* free the Mesa context */
_mesa_free_context_data(&intel->ctx);
- ralloc_free(intel);
+ ralloc_free(brw);
driContextPriv->driverPrivate = NULL;
}
}