summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/hash.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2002-12-12 13:03:15 +0000
committerKeith Whitwell <[email protected]>2002-12-12 13:03:15 +0000
commite15fd85727636627e0cc7d4fd2d5367e178e42cc (patch)
treebf71880e9da3502750d509739ebb7afe06d43f40 /src/mesa/main/hash.c
parent76d2a77291eb323c138751c0c605d120efe6cb38 (diff)
Add mechanism to destroy mutexes. Important on OS's where mutex initialization
allocates memory (like FreeBSD).
Diffstat (limited to 'src/mesa/main/hash.c')
-rw-r--r--src/mesa/main/hash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c
index 71df0cbf5bf..b22ee2551ab 100644
--- a/src/mesa/main/hash.c
+++ b/src/mesa/main/hash.c
@@ -1,4 +1,4 @@
-/* $Id: hash.c,v 1.14 2002/10/24 23:57:21 brianp Exp $ */
+/* $Id: hash.c,v 1.15 2002/12/12 13:03:15 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -94,6 +94,7 @@ void _mesa_DeleteHashTable(struct _mesa_HashTable *table)
entry = next;
}
}
+ _glthread_DESTROY_MUTEX(table->Mutex);
FREE(table);
}