dsound: Replace a realloc-or-alloc with a free-then-alloc.

Ken Thomases ken at codeweavers.com
Mon Feb 23 17:33:58 CST 2009


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 |    7 ++-----
  1 files changed, 2 insertions(+), 5 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 092a737849ac07364ebbfa19cb478e1cd695f41e.diff
Type: text/x-patch
Size: 869 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090223/52f00252/attachment.bin 


More information about the wine-patches mailing list