From: Marek Olšák Date: Mon, 26 Jul 2010 12:56:48 +0000 (+0200) Subject: util: fix another mutex leak in mempool X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3a42e46965221b8f8249f0f1076fc3544b68d0e;p=mesa.git util: fix another mutex leak in mempool By fixing one, I introduced another. Crap. --- diff --git a/src/gallium/auxiliary/util/u_mempool.c b/src/gallium/auxiliary/util/u_mempool.c index 6b1a72a7f67..1f336b39a1a 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); }