From c0eb777cd8e67e266a2fd1bccda7f77c0f1bd097 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Tue, 11 Jul 2006 19:36:27 +0000 Subject: free the ArrayObjects hash table --- src/mesa/main/context.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index e7146cf9b1f..5440d81c4e6 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -771,6 +771,9 @@ alloc_shared_state( GLcontext *ctx ) _mesa_DeleteHashTable(ss->BufferObjects); #endif + if (ss->ArrayObjects) + _mesa_DeleteHashTable (ss->ArrayObjects); + if (ss->GL2Objects) _mesa_DeleteHashTable (ss->GL2Objects); @@ -911,6 +914,8 @@ free_shared_state( GLcontext *ctx, struct gl_shared_state *ss ) _mesa_DeleteHashTable(ss->BufferObjects); #endif + _mesa_DeleteHashTable(ss->ArrayObjects); + #if FEATURE_ARB_shader_objects _mesa_DeleteHashTable(ss->GL2Objects); #endif -- cgit v1.2.3