util: fix another mutex leak in mempool
authorMarek Olšák <maraeo@gmail.com>
Mon, 26 Jul 2010 12:56:48 +0000 (14:56 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 26 Jul 2010 12:56:48 +0000 (14:56 +0200)
By fixing one, I introduced another. Crap.

src/gallium/auxiliary/util/u_mempool.c

index 6b1a72a7f6737af206a941fa4bd3189604bb3d7d..1f336b39a1a30407f83aae4def7dcfbe298d1d14 100644 (file)
@@ -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);
 }