internal/restorable: clear pixelsForRestore at Dispose

Updates #2375
This commit is contained in:
Hajime Hoshi 2022-10-06 15:04:08 +09:00
parent e66bac5c3f
commit 34562c3337

View File

@ -649,6 +649,7 @@ func (i *Image) Dispose() {
i.image.Dispose() i.image.Dispose()
i.image = nil i.image = nil
i.basePixels = Pixels{} i.basePixels = Pixels{}
i.pixelsForRestore = nil
i.clearDrawTrianglesHistory() i.clearDrawTrianglesHistory()
i.stale = false i.stale = false
i.staleRegion = image.Rectangle{} i.staleRegion = image.Rectangle{}