[patch] segv on use-after-free in dsound/buffer.c