mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +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.backend = nil
|
||||||
i.node = nil
|
i.node = nil
|
||||||
|
if markDisposed {
|
||||||
runtime.SetFinalizer(i, nil)
|
runtime.SetFinalizer(i, nil)
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
if i.disposed {
|
if i.disposed {
|
||||||
|
Loading…
Reference in New Issue
Block a user