summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@freedesktop.org>2006-07-11 19:36:27 +0000
committerTilman Sauerbeck <tilman@freedesktop.org>2006-07-11 19:36:27 +0000
commitc0eb777cd8e67e266a2fd1bccda7f77c0f1bd097 (patch)
tree71c3a9339764f84d04f031ca991cede3ba81980b /src/mesa/main
parent17b5063c6f7973e83954fe00105b8f1f1ec34493 (diff)
free the ArrayObjects hash table
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index e7146cf9b1..5440d81c4e 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