From e15fd85727636627e0cc7d4fd2d5367e178e42cc Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 12 Dec 2002 13:03:15 +0000 Subject: Add mechanism to destroy mutexes. Important on OS's where mutex initialization allocates memory (like FreeBSD). --- src/mesa/main/hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/hash.c') diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c index 71df0cbf5b..b22ee2551a 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); } -- cgit v1.2.3