From fd28445e102800b84e49e3f2299ef7dd8af8b89d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 19 Jul 2001 15:54:34 +0000 Subject: Added Win32 memory debugging and fixed a few memory leaks (Gerk Huisma) --- src/mesa/array_cache/ac_context.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mesa/array_cache') diff --git a/src/mesa/array_cache/ac_context.c b/src/mesa/array_cache/ac_context.c index e9c4fe869a..569b62b654 100644 --- a/src/mesa/array_cache/ac_context.c +++ b/src/mesa/array_cache/ac_context.c @@ -1,4 +1,4 @@ -/* $Id: ac_context.c,v 1.4 2001/04/28 08:39:18 keithw Exp $ */ +/* $Id: ac_context.c,v 1.5 2001/07/19 15:54:35 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -263,6 +263,10 @@ void _ac_DestroyContext( GLcontext *ctx ) } if (ac->Elts) FREE( ac->Elts ); + + /* Free the context structure itself */ + FREE(ac); + ctx->acache_context = NULL; } void _ac_InvalidateState( GLcontext *ctx, GLuint new_state ) -- cgit v1.2.3