Mesa (master): util: fix another mutex leak in mempool
Marek Olšák
mareko at kemper.freedesktop.org
Mon Jul 26 12:58:31 UTC 2010
Module: Mesa
Branch: master
Commit: a3a42e46965221b8f8249f0f1076fc3544b68d0e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3a42e46965221b8f8249f0f1076fc3544b68d0e
Author: Marek Olšák <maraeo at gmail.com>
Date: Mon Jul 26 14:56:48 2010 +0200
util: fix another mutex leak in mempool
By fixing one, I introduced another. Crap.
---
src/gallium/auxiliary/util/u_mempool.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_mempool.c b/src/gallium/auxiliary/util/u_mempool.c
index 6b1a72a..1f336b3 100644
--- a/src/gallium/auxiliary/util/u_mempool.c
+++ b/src/gallium/auxiliary/util/u_mempool.c
@@ -165,6 +165,5 @@ void util_mempool_destroy(struct util_mempool *pool)
FREE(page);
}
- if (pool->threading)
- pipe_mutex_destroy(pool->mutex);
+ pipe_mutex_destroy(pool->mutex);
}
More information about the mesa-commit
mailing list