audio: Add comment to explain why we don't free memory

This commit is contained in:
Hajime Hoshi 2016-05-27 19:43:03 +09:00
parent ba186d9fa4
commit 4254e7b70e

View File

@ -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,