This commit is contained in:
parent
45a68df83d
commit
c4881f2e09
@ -104,6 +104,7 @@ func (f *Framebuffer) Init(dev string) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Release open file
|
||||||
func (f *Framebuffer) Release() {
|
func (f *Framebuffer) Release() {
|
||||||
C.munmap(unsafe.Pointer(&f.Data[0]), C.size_t(f.Screensize))
|
C.munmap(unsafe.Pointer(&f.Data[0]), C.size_t(f.Screensize))
|
||||||
C.close(C.int(f.Fd))
|
C.close(C.int(f.Fd))
|
||||||
|
Loading…
Reference in New Issue
Block a user