graphics: finalizers must be reset when disposing

This commit is contained in:
Hajime Hoshi 2017-05-03 23:15:03 +09:00
parent 9f5cf48d24
commit ed4cd67fb3

View File

@ -169,6 +169,7 @@ func (i *Image) Dispose() error {
}
restorable.Images().Remove(i.restorable)
i.restorable = nil
runtime.SetFinalizer(i, nil)
return nil
}