graphics: Bug fix: Reset finalizer of *Image

This commit is contained in:
Hajime Hoshi 2016-07-05 02:16:49 +09:00
parent 760e1aa288
commit 6cb1c929b5

View File

@ -46,6 +46,7 @@ func (i *images) remove(img *Image) {
i.m.Lock()
defer i.m.Unlock()
delete(i.images, img.impl)
runtime.SetFinalizer(img, nil)
}
func (i *images) savePixels(context *opengl.Context) error {