libgdx/libgdx — pull request #101 by Seraphim6x7 (2012-11-01 14:57:38+00:00)
Title: Issue 1099: Pool#free -> Pool#freeAll

In [pull request 90](https://github.com/libgdx/libgdx/pull/90) we changed Pools#free(Array) to Pools#freeAll(Array). I previously missed this similar function in Pool and now propose to make the same change there.

There are two differences between Pool#free and Pool#freeAll at the moment.

The doc for Pool#free states " If the pool already contains max free objects, the specified object is ignored". This however, is not true.
Pool#free will always call #reset if the given object is Poolable but Pool#freeAll will not. I suspect the former is the expected behaviour and Pool#freeAll should do the same.

Secondly, if the array contains null values they are currently added to freeObjects. I suspect it's preferable to skip any null objects in the array instead.