diff options
author | Keith Whitwell <[email protected]> | 2002-12-12 13:03:15 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2002-12-12 13:03:15 +0000 |
commit | e15fd85727636627e0cc7d4fd2d5367e178e42cc (patch) | |
tree | bf71880e9da3502750d509739ebb7afe06d43f40 /src/mesa/main/context.c | |
parent | 76d2a77291eb323c138751c0c605d120efe6cb38 (diff) |
Add mechanism to destroy mutexes. Important on OS's where mutex initialization
allocates memory (like FreeBSD).
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 4656f25a701..2784fa82bd8 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $Id: context.c,v 1.189 2002/11/19 15:25:00 brianp Exp $ */ +/* $Id: context.c,v 1.190 2002/12/12 13:03:15 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -746,6 +746,8 @@ free_shared_state( GLcontext *ctx, struct gl_shared_state *ss ) _mesa_DeleteHashTable(ss->VertexPrograms); #endif + _glthread_DESTROY_MUTEX(ss->Mutex); + FREE(ss); } |