MCPcopy
hub / github.com/lxn/walk / Clear

Method Clear

iconcache.go:34–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (ic *IconCache) Clear() {
35 for key, bmp := range ic.imageAndDPI2Bitmap {
36 bmp.Dispose()
37 delete(ic.imageAndDPI2Bitmap, key)
38 }
39 for key, ico := range ic.imageAndDPI2Icon {
40 ico.Dispose()
41 delete(ic.imageAndDPI2Icon, key)
42 }
43}
44
45func (ic *IconCache) Dispose() {
46 ic.Clear()

Callers 6

DisposeMethod · 0.95
DisposeMethod · 0.45
DisposeMethod · 0.45
releaseMethod · 0.45
DisposeMethod · 0.45

Calls 1

DisposeMethod · 0.65

Tested by

no test coverage detected