summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texobj.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2013-08-26 17:16:08 +1000
committerBrian Paul <[email protected]>2013-09-04 07:47:48 -0600
commit6d8dd59cf53d2f47b817d79204a52bb3a46e8c77 (patch)
treef187b1d6de543007676a6c694b000d06d07f9370 /src/mesa/main/texobj.c
parent278372b47e4db8a022d57f60302eec74819e9341 (diff)
mesa: free object labels when deleting
Signed-off-by: Timothy Arceri <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r--src/mesa/main/texobj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index 7c8f04db966..cc2c786bb24 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -238,6 +238,8 @@ _mesa_delete_texture_object(struct gl_context *ctx,
/* destroy the mutex -- it may have allocated memory (eg on bsd) */
_glthread_DESTROY_MUTEX(texObj->Mutex);
+ free(texObj->Label);
+
/* free this object */
free(texObj);
}