internal/shareable: Optimization

This commit is contained in:
Hajime Hoshi 2021-01-26 00:43:45 +09:00
parent f1848a6d46
commit e60e6ca5ac

View File

@ -105,7 +105,9 @@ func makeImagesShared() error {
}
// Reset the images. The images will be registered again when it is used as a rendering source.
imagesToMakeShared = map[*Image]struct{}{}
for k := range imagesToMakeShared {
delete(imagesToMakeShared, k)
}
return nil
}