gallium/auxiliary: fix util_dynarray_trim to 0 to free the data
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 13 Apr 2010 06:18:59 +0000 (08:18 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Tue, 13 Apr 2010 06:18:59 +0000 (08:18 +0200)
commitc57261981702f78f0df1426c405a7e891ef81639
tree6a718ea8a72a42767b38d5f69eb7f7acbf591569
parent5f968a64dc965c7197c2b85ccf0a596fde366c06
gallium/auxiliary: fix util_dynarray_trim to 0 to free the data

This works better and preserves the
data != 0 if and only if capacity != 0 invariant.
src/gallium/auxiliary/util/u_dynarray.h