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/texobj.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/texobj.c')
-rw-r--r-- | src/mesa/main/texobj.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 93ae40ac745..f24a0b03de7 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1,4 +1,4 @@ -/* $Id: texobj.c,v 1.62 2002/10/24 23:57:21 brianp Exp $ */ +/* $Id: texobj.c,v 1.63 2002/12/12 13:03:15 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -164,6 +164,9 @@ void _mesa_free_texture_object( struct gl_shared_state *shared, } } + /* destroy the mutex -- it may have allocated memory (eg on bsd) */ + _glthread_DESTROY_MUTEX(t->Mutex); + /* free this object */ FREE( t ); } |