[WIN32] stop sink before deleting the buffer.