mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
audio: Add comment to explain why we don't free memory
This commit is contained in:
parent
ba186d9fa4
commit
4254e7b70e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user