mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
graphics: Bug fix: Reset finalizer of *Image
This commit is contained in:
parent
760e1aa288
commit
6cb1c929b5
1
image.go
1
image.go
@ -46,6 +46,7 @@ func (i *images) remove(img *Image) {
|
|||||||
i.m.Lock()
|
i.m.Lock()
|
||||||
defer i.m.Unlock()
|
defer i.m.Unlock()
|
||||||
delete(i.images, img.impl)
|
delete(i.images, img.impl)
|
||||||
|
runtime.SetFinalizer(img, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *images) savePixels(context *opengl.Context) error {
|
func (i *images) savePixels(context *opengl.Context) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user