dsound: Replace a realloc-or-alloc with a free-then-alloc.
commitca1d074c50493f032c60be627309e9b1eee53678
authorKen Thomases <ken@codeweavers.com>
Mon, 23 Feb 2009 23:33:58 +0000 (23 17:33 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 24 Feb 2009 15:57:27 +0000 (24 16:57 +0100)
tree97b73f7baf370d59fdc906dfd60779768d2ea09b
parentad1090c23c29b42e6328edaa65f4837a1426c5c1
dsound: Replace a realloc-or-alloc with a free-then-alloc.

The buffer is to be overwritten anyway, so there's no need to preserve its
contents.  Also, the old code leaked if the realloc were to fail.  All in all,
free-then-alloc is simpler.
dlls/dsound/buffer.c