shareable: Bug fix: SetFinalizer must not be reset at dispose(false)

This commit is contained in:
Hajime Hoshi 2018-07-22 05:40:04 +09:00
parent c15348f939
commit 6687ffe8ba

View File

@ -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 {