free the ArrayObjects hash table
authorTilman Sauerbeck <tilman@freedesktop.org>
Tue, 11 Jul 2006 19:36:27 +0000 (19:36 +0000)
committerTilman Sauerbeck <tilman@freedesktop.org>
Tue, 11 Jul 2006 19:36:27 +0000 (19:36 +0000)
src/mesa/main/context.c

index e7146cf9b1fe44da13933ed0bd8b5cde7fcf445e..5440d81c4e6478bb5e76a3a2406e807ddd064353 100644 (file)
@@ -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