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 6b1a72a..1f336b3 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);
 }