diff --git a/audio/internal/driver/driver_windows.go b/audio/internal/driver/driver_windows.go index 578642335..de24c2d18 100644 --- a/audio/internal/driver/driver_windows.go +++ b/audio/internal/driver/driver_windows.go @@ -35,7 +35,7 @@ type header struct { } func newHeader(waveOut C.HWAVEOUT, bufferSize int) (*header, error) { - // NOTE: This is never freed so far. + // NOTE: This is never freed so far, and we don't have to because newHeader is called a certain number of times. buf := C.malloc(C.size_t(bufferSize)) h := &header{ buffer: buf,