mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
shareable: Bug fix: SetFinalizer must not be reset at dispose(false)
This commit is contained in:
parent
c15348f939
commit
6687ffe8ba
@ -271,7 +271,9 @@ func (i *Image) dispose(markDisposed bool) {
|
||||
}
|
||||
i.backend = nil
|
||||
i.node = nil
|
||||
runtime.SetFinalizer(i, nil)
|
||||
if markDisposed {
|
||||
runtime.SetFinalizer(i, nil)
|
||||
}
|
||||
}()
|
||||
|
||||
if i.disposed {
|
||||
|
Loading…
Reference in New Issue
Block a user